SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class EmailShareController

- No description yet -

Functions

NameVisibilityDescription
__constructpublicConstructor
sharepublicForm to share
submitpublicSend a shared email
thankspublicThank you page
validateUrlprivate (static)Validate that a given URL is absolute and for this site

public __construct

void $EmailShareController->__construct ( );

Constructor

public share

void $EmailShareController->share ( );

Form to share

public submit

void $EmailShareController->submit ( );

Send a shared email

public thanks

void $EmailShareController->thanks ( );

Thank you page

private validateUrl

bool EmailShareController::validateUrl ( string $url );

Validate that a given URL is absolute and for this site

Allows for subdomains of the current site, so example.com can share a link to app.example.com
This is a ends-with chec, so example.com cannot share example.com.au