|
static | create ($type, $templadeDir, $forceCompile=false, $debugging=false) |
| Creates EngineTpl adapter of specified type. More...
|
|
Definition at line 28 of file EngineTpl.php.
assign |
( |
|
$tpl_var, |
|
|
|
$value = null |
|
) |
| |
|
abstract |
assigns global Template variable(s)
- Parameters
-
| array | $ |string $tpl_var the template variable name(s) |
mixed | $value | the value to assign |
- Returns
static create |
( |
|
$type, |
|
|
|
$templadeDir, |
|
|
|
$forceCompile = false , |
|
|
|
$debugging = false |
|
) |
| |
|
static |
Creates EngineTpl adapter of specified type.
- Parameters
-
int | $type | Specifies type of engine template to use, value must be one of EngineTpl::TYPE_* constants |
string | $templadeDir | Sets template directory of template sources |
boolean | $forceCompile | Enables/disables templates (re)compilation on every invocation if possible |
boolean | $debugging | Enables/disables debugging mode if possible |
- Returns
- EngineTpl
Definition at line 40 of file EngineTpl.php.
createTemplate |
( |
|
$template, |
|
|
array |
$data = null |
|
) |
| |
|
abstract |
This creates a template object which later can be rendered by the display or fetch.
- Parameters
-
string | $template | the resource handle of the template file |
array | $data | associative array containing the name/value pairs of variables which get assigned to the template object |
- Returns
- Template template object
displays a Template
- Parameters
-
string | $template | the resource handle of the template file or template object |
fetches a rendered template and returns the outoput
- Parameters
-
string | $template | the resource handle of the template file |
- Returns
- string rendered template output
Returns created adapter type name.
- Returns
- string adapter type name
Definition at line 62 of file EngineTpl.php.
The documentation for this class was generated from the following file: