Sunnysideup\HideMailto\HideMailtoController
Generates obfusticated links, and also holds the method called when /mailto/ is called via the URL. As noted above, take a look at the _config.php file to see how mailto/ maps to this class.
Synopsis
class HideMailtoController
extends ContentController
{
- // members
- private static string $allowed_domains = '*';
- public string $url = '';
- // methods
- public void __construct()
- public void defaultAction()
- public void index()
- public void RedirectBackURL()
- protected void makeMailtoString()
Hierarchy
Extends
- SilverStripe\CMS\Controllers\ContentController
Members
private
-
$allowed_domains
The list of allowed domains to create a mailto: link to. By default, allow all domains.
public
- $url
Methods
protected
public
- __construct()
- RedirectBackURL()
- defaultAction()
- index() — This is called by default when this controller is executed.