Inheritance diagram for RawPHPEngine:
Collaboration diagram for RawPHPEngine:Public Member Functions | |
| __construct () | |
| __get ($key) | |
| __set ($key, $value) | |
| __unset ($key) | |
| __isset ($key) | |
| display ($template) | |
| template_exists ($template) | |
| fetch ($template) | |
| assign ($key, $value= '') | |
| assigned ($key) | |
| clear () | |
| append ($key, $value= '') | |
Protected Attributes | |
| $engine_vars = array() | |
| $available_templates = null | |
| $template_map = array() | |
| $var_stack = array() | |
Habari RawPHPEngine class
The RawPHPEngine is a subclass of the abstract TemplateEngine class which is intended for those theme designers who choose to use raw PHP to design theme templates.
Definition at line 15 of file rawphpengine.php.
| RawPHPEngine::__construct | ( | ) |
Constructor for RawPHPEngine
Sets up default values for required settings.
Reimplemented from TemplateEngine.
Reimplemented in HiEngine.
Definition at line 28 of file rawphpengine.php.
| RawPHPEngine::__get | ( | $ | key | ) |
Tries to retrieve a variable from the internal array engine_vars. Method returns the value if succesful, returns false otherwise.
| key | name of variable |
Reimplemented from TemplateEngine.
Definition at line 39 of file rawphpengine.php.
| RawPHPEngine::__isset | ( | $ | key | ) |
Detects if a variable is assigned to the template engine for use in constructing the template's output.
| key | name of variable |
Reimplemented from TemplateEngine.
Definition at line 73 of file rawphpengine.php.
| RawPHPEngine::__set | ( | $ | key, | |
| $ | value | |||
| ) |
Assigns a variable to the template engine for use in constructing the template's output.
| key | name of variable | |
| value | value of variable |
Reimplemented from TemplateEngine.
Definition at line 51 of file rawphpengine.php.
| RawPHPEngine::__unset | ( | $ | key | ) |
Unassigns a variable to the template engine.
| key | name of variable |
Reimplemented from TemplateEngine.
Definition at line 61 of file rawphpengine.php.
| RawPHPEngine::append | ( | $ | key, | |
| $ | value = '' | |||
| ) |
Appends to an existing variable more values
| key | name of variable | |
| value | value of variable |
Reimplemented from TemplateEngine.
Definition at line 178 of file rawphpengine.php.
| RawPHPEngine::assign | ( | $ | key, | |
| $ | value = '' | |||
| ) |
Assigns a variable to the template engine for use in constructing the template's output.
| key | name( s ) of variable | |
| value | value of variable |
Reimplemented from TemplateEngine.
Definition at line 147 of file rawphpengine.php.
| RawPHPEngine::assigned | ( | $ | key | ) |
Detects if a variable is assigned to the template engine for use in constructing the template's output.
| string | $key name of variable |
Reimplemented from TemplateEngine.
Definition at line 159 of file rawphpengine.php.
| RawPHPEngine::clear | ( | ) |
Clear all of the assigned template variables
Reimplemented from TemplateEngine.
Definition at line 167 of file rawphpengine.php.
| RawPHPEngine::display | ( | $ | template | ) |
A function which outputs the result of a transposed template to the output stream
| template | Name of template to display |
Reimplemented from TemplateEngine.
Reimplemented in HiEngine.
Definition at line 84 of file rawphpengine.php.
Referenced by fetch().
| RawPHPEngine::fetch | ( | $ | template | ) |
A function which returns the content of the transposed template as a string
| string | $template Name of template to fetch |
Reimplemented from TemplateEngine.
Definition at line 132 of file rawphpengine.php.
| RawPHPEngine::template_exists | ( | $ | template | ) |
Returns the existance of the specified template name
| string | $template Name of template to detect |
Reimplemented from TemplateEngine.
Definition at line 106 of file rawphpengine.php.
Referenced by display(), and HiEngine::display().
1.7.1