PHP 클래스 HomeController, vanilla

상속: extends BaseController
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )