PHP Class HomeController, vanilla

Inheritance: extends BaseController
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

error() public méthode

Display error page.
public error ( )

fileNotFound() public méthode

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

index() public méthode

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

initialize() public méthode

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

leaving() public méthode

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

privacyPolicy() public méthode

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

sanitize() protected méthode

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.
Résultat string Returns the sanitized string.

sanitizeData() protected méthode

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

termsOfService() public méthode

Display TOS page.
Since: 2.0.0
public termsOfService ( )

unauthorized() public méthode

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

updateMode() public méthode

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