Свойство | Тип | Описание | |
---|---|---|---|
$onCompile | callable[] |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
addFilter ( $name, $callback ) : static | Registers run-time filter. | |
addMacro ( $name, latte\IMacro $macro ) : static | Adds new macro. | |
addProvider ( $name, $value ) : static | Adds new provider. | |
compile ( $name ) : string | Compiles template to PHP code. | |
createTemplate ( $name, array $params = [] ) : |
Creates template object. | |
getCacheFile ( $name ) : string | ||
getCompiler ( ) : |
||
getFilters ( ) : string[] | Returns all run-time filters. | |
getLoader ( ) : latte\ILoader | ||
getParser ( ) : |
||
getProviders ( ) : array | Returns all providers. | |
getTemplateClass ( $name ) : string | ||
invokeFilter ( $name, array $args ) : mixed | Call a run-time filter. | |
render ( $name, array $params = [], $block = NULL ) : void | Renders template to output. | |
renderToString ( $name, array $params = [], $block = NULL ) : string | Renders template to string. | |
setAutoRefresh ( $on = TRUE ) : static | Sets auto-refresh mode. | |
setContentType ( $type ) : static | ||
setLoader ( latte\ILoader $loader ) : static | ||
setTempDirectory ( $path ) : static | Sets path to temporary directory. | |
warmupCache ( $name ) : void | Compiles template to cache. |
Метод | Описание | |
---|---|---|
isExpired ( $file, $name ) : boolean | ||
loadTemplate ( $name ) : void |
public addFilter ( $name, $callback ) : static | ||
Результат | static |
public addMacro ( $name, latte\IMacro $macro ) : static | ||
$macro | latte\IMacro | |
Результат | static |
public addProvider ( $name, $value ) : static | ||
Результат | static |
public createTemplate ( $name, array $params = [] ) : |
||
$params | array | |
Результат |
public getFilters ( ) : string[] | ||
Результат | string[] |
public getProviders ( ) : array | ||
Результат | array |
public invokeFilter ( $name, array $args ) : mixed | ||
$args | array | |
Результат | mixed |
public renderToString ( $name, array $params = [], $block = NULL ) : string | ||
$params | array | |
Результат | string |
public setAutoRefresh ( $on = TRUE ) : static | ||
Результат | static |
public setLoader ( latte\ILoader $loader ) : static | ||
$loader | latte\ILoader | |
Результат | static |
public setTempDirectory ( $path ) : static | ||
Результат | static |
public warmupCache ( $name ) : void | ||
Результат | void |