
Public Member Functions | |
| __construct ($encoding='pass') | |
| read () | |
| assign ($holder, $value) | |
| auto_assign ($data=null) | |
| display () | |
| get_content () | |
| __destruct () | |
Public Attributes | |
| $dir = null | |
| $html = null | |
| $keep_unassigned = true | |
Protected Attributes | |
| $content = null | |
Private Member Functions | |
| _preparse () | |
| _replace () | |
| template::__construct | ( | $ | encoding = 'pass' |
) |
| template::__destruct | ( | ) |
| template::read | ( | ) |
| template::_preparse | ( | ) | [private] |
| template::assign | ( | $ | holder, | |
| $ | value | |||
| ) |
assign
Will assign a value to a placeholder.
If you should assign a null value this will result in the string 'NULL'.
Example:
....
$tpl->read();
$tpl->assign('UNIVERSE','Hello World');
| string | $holder A template placeholder | |
| string | $value What will be assigned to. |
Implements iTemplate.
| template::auto_assign | ( | $ | data = null |
) |
| template::_replace | ( | ) | [private] |
_replace
Will replace all assigned placeholders with the value
private
| template::display | ( | ) |
| template::get_content | ( | ) |
| template::$dir = null |
| template::$html = null |
| template::$keep_unassigned = true |
template::$content = null [protected] |
1.5.3