|
| | init ($tpl_path, $tpl_filename, $tpl_file= '') |
| |
| | parse ($buff=null) |
| |
| TemplateHandler::__construct |
( |
| ) |
|
| TemplateHandler::_getRelativeDir |
( |
|
$path | ) |
|
| TemplateHandler::_replaceVar |
( |
|
$php | ) |
|
| TemplateHandler::compile |
( |
|
$tpl_path, |
|
|
|
$tpl_filename, |
|
|
|
$tpl_file = '' |
|
) |
| |
compiles specified tpl file and execution result in Context into resultant content
- Parameters
-
| string | $tpl_path | path of the directory containing target template file |
| string | $tpl_filename | target template file's name |
| string | $tpl_file | if specified use it as template file's full path |
- Returns
- string Returns compiled result in case of success, NULL otherwise
Definition at line 139 of file TemplateHandler.class.php.
| TemplateHandler::compileDirect |
( |
|
$tpl_path, |
|
|
|
$tpl_filename |
|
) |
| |
compile specified file and immediately return
- Parameters
-
| string | $tpl_path | path of the directory containing target template file |
| string | $tpl_filename | target template file's name |
- Returns
- string Returns compiled content in case of success or NULL in case of failure
Definition at line 219 of file TemplateHandler.class.php.
| static& TemplateHandler::getInstance |
( |
| ) |
|
|
static |
| TemplateHandler::init |
( |
|
$tpl_path, |
|
|
|
$tpl_filename, |
|
|
|
$tpl_file = '' |
|
) |
| |
|
protected |
set variables for template compile
- Parameters
-
| string | $tpl_path | |
| string | $tpl_filename | |
| string | $tpl_file | |
- Returns
- void
Definition at line 91 of file TemplateHandler.class.php.
| TemplateHandler::isAutoescape |
( |
| ) |
|
| TemplateHandler::parse |
( |
|
$buff = null | ) |
|
|
protected |
parse syntax.
- Parameters
-
- Returns
- string compiled result in case of success or NULL in case of error
Definition at line 238 of file TemplateHandler.class.php.
| TemplateHandler::setAutoescape |
( |
|
$val = true | ) |
|
The documentation for this class was generated from the following file: