PHP 클래스 Ip\View

파일 보기 프로젝트 열기: impresspages/impresspages

보호된 프로퍼티들

프로퍼티 타입 설명
$overrides

공개 메소드들

메소드 설명
__construct ( string $file, array $data = [] ) Construct view object using specified file and data.
__toString ( ) : string PHP can't handle exceptions in __toString method. Try to avoid it every time possible. Use render() method instead.
clearOverride ( $source ) Clear registered view file override
getDoctype ( ) : mixed Return DOCTYPE declaration.
getThemeOption ( $name, null $default = null ) : string Get theme option. Options can be viewed or set using UI via Theme options dialog box.
getVariable ( $name ) : null Get view variable value
getVariables ( ) : array Get view variables
registerOverride ( string $source, string $destination ) Register view file override
render ( ) : string Render a view and return HTML, XML, or any other string.
setDoctype ( $doctype ) Set DOCTYPE declaration.
setVariable ( string $name, $value ) Set a single view variable
setVariables ( $variables ) Set view variables
unsetVariable ( $name ) Unset a view variable

비공개 메소드들

메소드 설명
checkData ( $data )

메소드 상세

__construct() 공개 메소드

Construct view object using specified file and data.
public __construct ( string $file, array $data = [] )
$file string Path to view file. Relative to file where this constructor is executed from.
$data array Array of data to pass to view

__toString() 공개 메소드

PHP can't handle exceptions in __toString method. Try to avoid it every time possible. Use render() method instead.
public __toString ( ) : string
리턴 string

clearOverride() 공개 정적인 메소드

Clear registered view file override
public static clearOverride ( $source )
$source

getDoctype() 공개 메소드

Return DOCTYPE declaration.
public getDoctype ( ) : mixed
리턴 mixed

getThemeOption() 공개 메소드

Get theme option. Options can be viewed or set using UI via Theme options dialog box.
public getThemeOption ( $name, null $default = null ) : string
$name
$default null
리턴 string

getVariable() 공개 메소드

Get view variable value
public getVariable ( $name ) : null
$name
리턴 null

getVariables() 공개 메소드

Get view variables
public getVariables ( ) : array
리턴 array

registerOverride() 공개 정적인 메소드

Register view file override
public static registerOverride ( string $source, string $destination )
$source string absolute path to the view file to be overriden
$destination string absolute path to the new view file

render() 공개 메소드

Render a view and return HTML, XML, or any other string.
public render ( ) : string
리턴 string

setDoctype() 공개 메소드

Set DOCTYPE declaration.
public setDoctype ( $doctype )
$doctype

setVariable() 공개 메소드

Set a single view variable
public setVariable ( string $name, $value )
$name string
$value

setVariables() 공개 메소드

Set view variables
public setVariables ( $variables )
$variables

unsetVariable() 공개 메소드

Unset a view variable
public unsetVariable ( $name )
$name

프로퍼티 상세

$overrides 보호되어 있는 정적으로 프로퍼티

protected static $overrides