|
| $template = '' |
|
| $openDelimiter = '{' |
|
| $closeDelimiter = '}' |
|
| $values = array() |
|
A simple template engine.
- Since
- Class available since Release 1.0.0
◆ __construct()
Text_Template::__construct |
( |
|
$file = '' , |
|
|
|
$openDelimiter = '{' , |
|
|
|
$closeDelimiter = '}' |
|
) |
| |
Constructor.
- Parameters
-
- Exceptions
-
◆ render()
Text_Template::render |
( |
| ) |
|
Renders the template and returns the result.
- Returns
- string
◆ renderTo()
Text_Template::renderTo |
( |
|
$target | ) |
|
Renders the template and writes the result to a file.
- Parameters
-
◆ setFile()
Text_Template::setFile |
( |
|
$file | ) |
|
Sets the template file.
- Parameters
-
- Exceptions
-
◆ setVar()
Text_Template::setVar |
( |
array |
$values, |
|
|
|
$merge = TRUE |
|
) |
| |
Sets one or more template variables.
- Parameters
-
The documentation for this class was generated from the following file:
- vendor/phpunit/php-text-template/src/Template.php