Template.php File Reference
Go to the source code of this file.
Classes
- class Template
Enumerations
- enum DT_NO_CUSTOMPLUGINS
Functions
- display_template ($filename, $cache_expire_time=NULL, $cache_id=NULL, $cache_allow_override=true)
- get_template ($filename, $cache_expire_time=NULL, $cache_id=NULL, $cache_allow_override=true)
Enumeration Type Documentation
| enum DT_NO_CUSTOMPLUGINS |
Definition at line 28 of file Template.php.
Function Documentation
| display_template | ( | $ | filename, | |
| $ | cache_expire_time = NULL, |
|||
| $ | cache_id = NULL, |
|||
| $ | cache_allow_override = true | |||
| ) |
Definition at line 2240 of file Template.php.
02240 { 02241 $tpl = new Template($cache_expire_time>0,$cache_id,true,$cache_allow_override); 02242 02243 $tpl->set_cache_lifetime($cache_expire_time); 02244 if (!$tpl->display($filename)) { 02245 echo "Error: $tpl->error\n"; 02246 } 02247 unset($tpl); 02248 }
| get_template | ( | $ | filename, | |
| $ | cache_expire_time = NULL, |
|||
| $ | cache_id = NULL, |
|||
| $ | cache_allow_override = true | |||
| ) |
Definition at line 2252 of file Template.php.
02252 { 02253 $tpl = new Template($cache_expire_time>0,$cache_id,true,$cache_allow_override); 02254 02255 $tpl->set_cache_lifetime($cache_expire_time); 02256 $res = $tpl->get($filename); 02257 if ($res===false) { 02258 echo "Error: $tpl->error\n"; 02259 } 02260 unset($tpl); 02261 02262 return $res; 02263 }
