메소드 |
설명 |
|
__construct ( array $vars = [] ) |
Creates a fragment with the given variables. |
|
__get ( string $name ) : mixed |
Magic getter to reference variables from within the fragment. |
|
__isset ( string $name ) : boolean |
Magic method to check if a variable is set. |
|
addDirectory ( string $dir ) |
Add a path to the fragment search path. |
|
decorate ( string $filename, array $params ) |
Decorate the current fragment, with another fragment. |
|
getVar ( string $name, string $default = null ) |
Returns the value of the given variable $name. |
|
parse ( string $filename, boolean $delete_whitespaces = true ) : string |
Parses the variables of the fragment into the file $filename. |
|
setVar ( string $name, mixed $value, boolean $escape = true ) |
Set the variable $name to the given value. |
|