Public Member Functions | |
| __construct ($templatePath) | |
| assign ($name, $value) | |
| render () | |
| showBlock ($blockName) | |
| hideBlock ($blockName) | |
Protected Attributes | |
| $_templatePath | |
Simple PHP-based template class
Definition at line 23 of file phptemplate.lib.php.
| __construct | ( | $ | templatePath | ) |
Constructor
| string | $templatePath path to the php template file |
Reimplemented in CoreTemplate.
Definition at line 31 of file phptemplate.lib.php.
| assign | ( | $ | name, | |
| $ | value | |||
| ) |
Assign a value to a variable
| string | $name | |
| mixed | $value |
Definition at line 41 of file phptemplate.lib.php.
| hideBlock | ( | $ | blockName | ) |
Hide a block in the template given its name (ie set the variable with the block name to false)
| string | $blockName |
Definition at line 84 of file phptemplate.lib.php.
| render | ( | ) |
Render the template
| Exception | if file not found or error/exception in the template |
Implements Display.
Reimplemented in ClaroBanner, ClaroBody, ClaroFooter, and ClaroHeader.
Definition at line 51 of file phptemplate.lib.php.
| showBlock | ( | $ | blockName | ) |
Show a block in the template given its name (ie set the variable with the block name to true)
| string | $blockName |
Definition at line 74 of file phptemplate.lib.php.
$_templatePath [protected] |
Definition at line 25 of file phptemplate.lib.php.
1.6.3