ITemplateEngine Interface Reference
[Interfaces]
A template rendering class. More...
Inheritance diagram for
ITemplateEngine:
Public Member Functions |
|
assign ($name, $value) | |
Set a template variable. |
|
assign_array ($arr) | |
Assign array of template variables. |
|
fetch ($file) | |
Renders content. |
|
retrieve ($name) |
Detailed Description
A template rendering class.
Definition at line 8 of file itemplateengine.cls.php.
Member Function Documentation
ITemplateEngine::assign | ( | $ | name, | |
$ | value | |||
) |
ITemplateEngine::assign_array | ( | $ | arr | ) |
Assign array of template variables.
- Parameters:
-
array $arr Associative array with name as key and value as value
Implemented in TemplateEngineSimple.
ITemplateEngine::fetch | ( | $ | file | ) |
Renders content.
- Parameters:
-
string $file Tempalte file name
- Returns:
- string Rendered content
Implemented in TemplateEngineSimple.
ITemplateEngine::retrieve | ( | $ | name | ) |
Implemented in TemplateEngineSimple.
The documentation for this interface was generated from the following file:
- gyro/core/lib/interfaces/itemplateengine.cls.php