Public Member Functions | |
| templateparser ($tpl_folder) | |
| Class Constructor. | |
| _templateparser () | |
| Class Destructor. | |
| tpl_display_tpl () | |
| Display the complete converted template. | |
| tpl_flush_errors () | |
| Flush the complete template error buffer. | |
| tpl_get_errorlist () | |
| Returns array with all errors which happened during the last parse process. After the call the list will be cleared. | |
| tpl_parse_all ($tpl_name) | |
| Parse the complete template. | |
| tpl_register_var ($var_value, $var_name) | |
| Register normal variable or array. Arrays get a new index name like "arrayname.keyvalue". The keyvalue starts from 0. | |
| tpl_unset_array ($array_name) | |
| Unset array by name. | |
| tpl_unset_var ($var_name) | |
| Unset variable by name. | |
| tpl_get_reg_array_size ($array_name) | |
| Returns size of registered array. | |
| tpl_include_files () | |
| Include the data through the include command. | |
| tpl_parse_loops () | |
| Convert all loops. Note that loops inside loops will be not supported at this time. | |
| tpl_parse_vars () | |
| Converts all vars. | |
| tpl_read_tpl ($tpl_name) | |
| Reads complete template file. | |
Public Attributes | |
| $tpl_error_hdl = 0 | |
| $tpl_folder = 0 | |
| $tpl_name = 0 | |
| $tpl_string = 0 | |
| $tpl_vars = array() | |
|
|
Class Constructor.
|
|
|
Class Destructor.
|
|
|
Display the complete converted template.
|
|
|
Flush the complete template error buffer.
|
|
|
Returns array with all errors which happened during the last parse process. After the call the list will be cleared.
|
|
|
Returns size of registered array.
|
|
|
Include the data through the include command.
|
|
|
Parse the complete template.
|
|
|
Convert all loops. Note that loops inside loops will be not supported at this time.
|
|
|
Converts all vars.
|
|
|
Reads complete template file.
|
|
||||||||||||
|
Register normal variable or array. Arrays get a new index name like "arrayname.keyvalue". The keyvalue starts from 0.
|
|
|
Unset array by name.
|
|
|
Unset variable by name.
|
|
|
Error message handler |
|
|
Template working folder |
|
|
Actual template |
|
|
Includes the complete template string |
|
|
Includes all registered vars and arrays |
1.4.3