![]() |
Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
Class used to manage and parse templates. More...
Public Member Functions | |
| __construct ($tpl_path) | |
| Constructs a template instance. | |
| getPath () | |
| Template file getter. | |
| parse () | |
| Template parser. | |
Protected Member Functions | |
| chargeModules ($matches) | |
| Charges modules outputs. | |
| parseModules ($matches) | |
| modules parser | |
| parseVariables ($matches) | |
| Variables parser. | |
Protected Attributes | |
| $_mdl_url_content | |
| content outputted by the method called through url | |
| $_modules | |
| array containing contents outputted by the modules called in the template | |
| $_path | |
| template file path | |
| $_registry | |
| the registry singleton instance | |
Class used to manage and parse templates.
Definition at line 21 of file template.class.php.
| template::__construct | ( | $ | tpl_path | ) |
Constructs a template instance.
| string | $tpl_path | template file path |
Definition at line 49 of file template.class.php.
Here is the call graph for this function:| template::chargeModules | ( | $ | matches | ) | [protected] |
Charges modules outputs.
| array | $matches | regexp matches |
Definition at line 174 of file template.class.php.
Template file getter.
Definition at line 60 of file template.class.php.
Here is the caller graph for this function:| template::parse | ( | ) |
Template parser.
Parses the tempate file and replaces variables and module's outputs
Definition at line 73 of file template.class.php.
Here is the call graph for this function:| template::parseModules | ( | $ | matches | ) | [protected] |
modules parser
| array | $matches | regexp matches |
Definition at line 159 of file template.class.php.
| template::parseVariables | ( | $ | matches | ) | [protected] |
Variables parser.
| array | $matches | regexp matches |
Definition at line 106 of file template.class.php.
Here is the call graph for this function:template::$_mdl_url_content [protected] |
content outputted by the method called through url
Definition at line 36 of file template.class.php.
template::$_modules [protected] |
array containing contents outputted by the modules called in the template
Definition at line 41 of file template.class.php.
template::$_path [protected] |
template file path
Definition at line 31 of file template.class.php.
template::$_registry [protected] |
the registry singleton instance
Definition at line 26 of file template.class.php.