Property | Type | Description | |
---|---|---|---|
$onCompile | callable[] |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
isExpired ( $file, $name ) : boolean | ||
loadTemplate ( $name ) : void |
public addFilter ( $name, $callback ) : static | ||
return | static |
public addMacro ( $name, latte\IMacro $macro ) : static | ||
$macro | latte\IMacro | |
return | static |
public addProvider ( $name, $value ) : static | ||
return | static |
public createTemplate ( $name, array $params = [] ) : |
||
$params | array | |
return |
public getFilters ( ) : string[] | ||
return | string[] |
public invokeFilter ( $name, array $args ) : mixed | ||
$args | array | |
return | mixed |
public renderToString ( $name, array $params = [], $block = NULL ) : string | ||
$params | array | |
return | string |
public setAutoRefresh ( $on = TRUE ) : static | ||
return | static |
public setLoader ( latte\ILoader $loader ) : static | ||
$loader | latte\ILoader | |
return | static |
public setTempDirectory ( $path ) : static | ||
return | static |
public warmupCache ( $name ) : void | ||
return | void |