PHP 클래스 core\Template

파일 보기 프로젝트 열기: sendya/shadowsocks-panel 1 사용 예제들

공개 메소드들

메소드 설명
getContext ( )
getPath ( string $templateName ) : string Get template file path
getView ( )
load ( string $templateName, array $context = [] ) : string Load a template from data folder, compile it if it is outdated or not exists
parseLoop ( $match )
parseUrlRewrite ( $match )
putContext ( $name, $value, $escapeType = Escape::TEXT_RECURSIVE )
render ( )
setContext ( $context = [] )
setView ( $viewName )

비공개 메소드들

메소드 설명
compile ( $templateName )
createDir ( $dir, $permission = 511 )
pregGet ( $subject, $pattern, $offset = 1 )

메소드 상세

getContext() 공개 정적인 메소드

public static getContext ( )

getPath() 공개 정적인 메소드

Get template file path
public static getPath ( string $templateName ) : string
$templateName string Template file name
리턴 string Absolute path of the template file

getView() 공개 정적인 메소드

public static getView ( )

load() 공개 정적인 메소드

Load a template from data folder, compile it if it is outdated or not exists
사용 중단: Please use setView(), putContext(), render()
public static load ( string $templateName, array $context = [] ) : string
$templateName string
$context array
리턴 string

parseLoop() 공개 정적인 메소드

public static parseLoop ( $match )

parseUrlRewrite() 공개 정적인 메소드

public static parseUrlRewrite ( $match )

putContext() 공개 정적인 메소드

public static putContext ( $name, $value, $escapeType = Escape::TEXT_RECURSIVE )

render() 공개 정적인 메소드

public static render ( )

setContext() 공개 정적인 메소드

public static setContext ( $context = [] )

setView() 공개 정적인 메소드

public static setView ( $viewName )