Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
template Class Reference

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

Detailed Description

Class used to manage and parse templates.

Author:
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
Version:
0.99
Date:
2011-2012

Definition at line 21 of file template.class.php.


Constructor & Destructor Documentation

template::__construct ( tpl_path)

Constructs a template instance.

Parameters:
string$tpl_pathtemplate file path
Returns:
void

Definition at line 49 of file template.class.php.

+ Here is the call graph for this function:


Member Function Documentation

template::chargeModules ( matches) [protected]

Charges modules outputs.

Parameters:
array$matchesregexp matches
Returns:
void

Definition at line 174 of file template.class.php.

Template file getter.

Returns:
string template file path

Definition at line 60 of file template.class.php.

+ Here is the caller graph for this function:

Template parser.

Parses the tempate file and replaces variables and module's outputs

Returns:
void

Definition at line 73 of file template.class.php.

+ Here is the call graph for this function:

template::parseModules ( matches) [protected]

modules parser

Parameters:
array$matchesregexp matches
Returns:
void

Definition at line 159 of file template.class.php.

template::parseVariables ( matches) [protected]

Variables parser.

Parameters:
array$matchesregexp matches
Returns:
void

Definition at line 106 of file template.class.php.

+ Here is the call graph for this function:


Field Documentation

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.


The documentation for this class was generated from the following file: