PHP Класс HomeController, vanilla

Наследование: extends BaseController
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

deleted() публичный Метод

Display 'content deleted' page.
С версии: 2.0.0
public deleted ( )

error() публичный Метод

Display error page.
public error ( )

fileNotFound() публичный Метод

A standard 404 File Not Found error message is delivered when this action is encountered.
С версии: 2.0.0
public fileNotFound ( )

index() публичный Метод

Display dashboard welcome message.
С версии: 2.0.0
public index ( )

initialize() публичный Метод

JS & CSS includes for all methods in this controller.
С версии: 2.0.0
public initialize ( )

leaving() публичный Метод

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

privacyPolicy() публичный Метод

Display privacy info page.
С версии: 2.0.0
public privacyPolicy ( )

sanitize() защищенный Метод

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.
Результат string Returns the sanitized string.

sanitizeData() защищенный Метод

Sanitize the main exception fields in the data array according to the _Filter key.
См. также: HomeController::sanitize()
protected sanitizeData ( )

termsOfService() публичный Метод

Display TOS page.
С версии: 2.0.0
public termsOfService ( )

unauthorized() публичный Метод

Display 'no permission' page.
С версии: 2.0.0
public unauthorized ( )

updateMode() публичный Метод

Display 'site down for maintenance' page.
С версии: 2.0.0
public updateMode ( )