Public Member Functions | |
| Template ($module_name='') | |
| set_module ($name) | |
| & | import_helper ($name) |
| set ($name, $value) | |
| & | get ($name) |
| is_set ($name) | |
| un_set ($name) | |
| fetch ($filename, $vars=array(), $language=false) | |
Public Attributes | |
| $variables | |
| $module_name | |
PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet
Description: Template facilities.
Definition at line 10 of file template.php.
| Template::fetch | ( | $ | filename, | |
| $ | vars = array(), |
|||
| $ | language = false | |||
| ) |
Return a rendered template.
| string | $filename Template file to render | |
| array | $vars Additional variables to include in template | |
| string | $language I18N language to set before rendering template |
Definition at line 121 of file template.php.
| & Template::get | ( | $ | name | ) |
Retrieve a variable that will be passed to the template
| string | $name |
Definition at line 87 of file template.php.
Referenced by fetch().
| & Template::import_helper | ( | $ | name | ) |
Import a helper (aka "template plugin").
| string | $name Helper name |
Definition at line 49 of file template.php.
References Factory::plugin().
Referenced by Template().
| Template::is_set | ( | $ | name | ) |
Check if a template variable has been set
| string | $name |
Definition at line 98 of file template.php.
| Template::set | ( | $ | name, | |
| $ | value | |||
| ) |
Set a variable to be passed to the template
| mixed | $name | |
| mixed | $value |
Definition at line 67 of file template.php.
| Template::set_module | ( | $ | name | ) |
Declare this template object to be part of a Pronto module.
| string | $name Module name |
Definition at line 39 of file template.php.
| Template::Template | ( | $ | module_name = '' |
) |
Constructor.
| string | $module_name If the template object is working within a Pronto module, then set the name here. This will affect the path that the template object uses to find template files. |
Definition at line 23 of file template.php.
References $module_name, $p, and import_helper().
| Template::un_set | ( | $ | name | ) |
Unset/Delete a template variable that has been set
| string | $name |
Definition at line 108 of file template.php.
| Template::$module_name |
Definition at line 13 of file template.php.
Referenced by Template().
| Template::$variables |
Definition at line 12 of file template.php.
1.6.1