Template
class Template implements ITemplate
Latte powered template.
Methods
No description
No description
Renders template to output.
Renders template to output.
Renders template to string.
Registers run-time function.
Sets translate adapter.
Returns the path to the template file.
Sets all parameters.
Returns array of all parameters.
Sets a template parameter. Do not call directly.
Returns a template parameter. Do not call directly.
Determines whether parameter is defined. Do not call directly.
Removes a template parameter. Do not call directly.
Prevents unserialization.
Details
at line 33
__construct(Engine $latte)
No description
at line 39
final Engine
getLatte()
No description
at line 48
void
render(string $file = null, array $params = [])
Renders template to output.
at line 57
string
renderToString(string $file = null, array $params = [])
Renders template to output.
at line 67
string
__toString()
Renders template to string.
at line 88
Template
addFilter(string|null $name, callable $callback)
Registers run-time filter.
at line 99
Template
addFunction(string $name, callable $callback)
Registers run-time function.
at line 110
Template
setTranslator(ITranslator|null $translator)
Sets translate adapter.
at line 128
ITemplate
setFile(string $file)
Sets the path to the template file.
at line 135
final string|null
getFile()
Returns the path to the template file.
at line 145
Template
add(string $name, $value)
Adds new template parameter.
at line 159
Template
setParameters(array $params)
Sets all parameters.
at line 169
final array
getParameters()
Returns array of all parameters.
at line 178
void
__set($name, $value)
Sets a template parameter. Do not call directly.
at line 188
mixed
__get($name)
Returns a template parameter. Do not call directly.
at line 201
__isset($name)
Determines whether parameter is defined. Do not call directly.
at line 210
void
__unset(string $name)
Removes a template parameter. Do not call directly.
at line 219
final
__wakeup()
Prevents unserialization.