PHP 클래스 PMA\libraries\Template

Handle front end templating
파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data Data associated with the template
$helperFunctions Helper functions for the template
$name Name of the template

공개 메소드들

메소드 설명
__call ( string $funcName, array $arguments ) Magic call to locally inaccessible but associated helper functions
get ( string $name, array $data = [], array $helperFunctions = [] ) : Template Template getter
removeHelper ( string $funcName ) Removes a function
render ( array $data = [], array $helperFunctions = [] ) : string Render template
set ( array | string $data, string $value = null ) Adds more entries to the data for this template
setHelper ( string $funcName, callable $funcDef ) Adds a function for use by the template

보호된 메소드들

메소드 설명
__construct ( string $name, array $data = [], array $helperFunctions = [] ) Template constructor

메소드 상세

__call() 공개 메소드

Magic call to locally inaccessible but associated helper functions
public __call ( string $funcName, array $arguments )
$funcName string function name
$arguments array function arguments

__construct() 보호된 메소드

Template constructor
protected __construct ( string $name, array $data = [], array $helperFunctions = [] )
$name string Template name
$data array Variables to be provided to the template
$helperFunctions array Helper functions to be used by template

get() 공개 정적인 메소드

Template getter
public static get ( string $name, array $data = [], array $helperFunctions = [] ) : Template
$name string Template name
$data array Variables to be provided to the template
$helperFunctions array Helper functions to be used by template
리턴 Template

removeHelper() 공개 메소드

Removes a function
public removeHelper ( string $funcName )
$funcName string function name

render() 공개 메소드

Render template
public render ( array $data = [], array $helperFunctions = [] ) : string
$data array Variables to be provided to the template
$helperFunctions array Helper functions to be used by template
리턴 string

set() 공개 메소드

Adds more entries to the data for this template
public set ( array | string $data, string $value = null )
$data array | string containing data array or data key
$value string containing data value

setHelper() 공개 메소드

Adds a function for use by the template
public setHelper ( string $funcName, callable $funcDef )
$funcName string function name
$funcDef callable function definition

프로퍼티 상세

$data 보호되어 있는 프로퍼티

Data associated with the template
protected $data

$helperFunctions 보호되어 있는 프로퍼티

Helper functions for the template
protected $helperFunctions

$name 보호되어 있는 프로퍼티

Name of the template
protected $name