메소드 |
설명 |
|
__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 = [] ) : Template |
Creates template object. |
|
getCacheFile ( $name ) : string |
|
|
getCompiler ( ) : Compiler |
|
|
getFilters ( ) : string[] |
Returns all run-time filters. |
|
getLoader ( ) : latte\ILoader |
|
|
getParser ( ) : Parser |
|
|
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. |
|