PHP Class HomeController, vanilla

Inheritance: extends BaseController
Mostrar archivo Open project: vanilla/vanilla Class Usage Examples

Public Methods

Method Description
deleted ( ) Display 'content deleted' page.
error ( ) Display error page.
fileNotFound ( ) A standard 404 File Not Found error message is delivered when this action is encountered.
index ( ) Display dashboard welcome message.
initialize ( ) JS & CSS includes for all methods in this controller.
leaving ( string $target = '' )
privacyPolicy ( ) Display privacy info page.
termsOfService ( ) Display TOS page.
unauthorized ( ) Display 'no permission' page.
updateMode ( ) Display 'site down for maintenance' page.

Protected Methods

Method Description
sanitize ( string $string ) : string Sanitize a string according to the filter specified _Filter in the data array.
sanitizeData ( ) Sanitize the main exception fields in the data array according to the _Filter key.

Private Methods

Method Description
clearNavigationPreferences ( ) Clears the request uri from the user's navigation preferences. This stops the user from getting locked out of the dashboard if they saved a preference for a page that no longer exists or that they no longer have permission to view.

Method Details

deleted() public method

Display 'content deleted' page.
Since: 2.0.0
public deleted ( )

error() public method

Display error page.
public error ( )

fileNotFound() public method

A standard 404 File Not Found error message is delivered when this action is encountered.
Since: 2.0.0
public fileNotFound ( )

index() public method

Display dashboard welcome message.
Since: 2.0.0
public index ( )

initialize() public method

JS & CSS includes for all methods in this controller.
Since: 2.0.0
public initialize ( )

leaving() public method

public leaving ( string $target = '' )
$target string

privacyPolicy() public method

Display privacy info page.
Since: 2.0.0
public privacyPolicy ( )

sanitize() protected method

The valid values for _Filter are: - none: No sanitization. - filter: Sanitize using {@link Gdn_Format::htmlFilter()}. - safe: Sanitize using {@link htmlspecialchars()}.
protected sanitize ( string $string ) : string
$string string The string to sanitize.
return string Returns the sanitized string.

sanitizeData() protected method

Sanitize the main exception fields in the data array according to the _Filter key.
See also: HomeController::sanitize()
protected sanitizeData ( )

termsOfService() public method

Display TOS page.
Since: 2.0.0
public termsOfService ( )

unauthorized() public method

Display 'no permission' page.
Since: 2.0.0
public unauthorized ( )

updateMode() public method

Display 'site down for maintenance' page.
Since: 2.0.0
public updateMode ( )