| version 1.2, 2006/04/20 12:06:15 |
version 1.3, 2007/09/16 20:49:19 |
| Line 22 define('HTML_TEMPLATE_PLATON_SET_VALUE', |
|
| Line 22 define('HTML_TEMPLATE_PLATON_SET_VALUE', |
|
| define('HTML_TEMPLATE_PLATON_SET_CODE', 1); |
define('HTML_TEMPLATE_PLATON_SET_CODE', 1); |
| define('HTML_TEMPLATE_PLATON_SET_PARSE', 2); |
define('HTML_TEMPLATE_PLATON_SET_PARSE', 2); |
| define('HTML_TEMPLATE_PLATON_SET_VAR', 3); |
define('HTML_TEMPLATE_PLATON_SET_VAR', 3); |
| |
define('HTML_TEMPLATE_PLATON_SET_ALIAS', 3); // the same as old SET_VAR |
| // }}} |
// }}} |
| |
|
| class HTML_Template_Platon |
class HTML_Template_Platon |
| Line 30 class HTML_Template_Platon |
|
| Line 31 class HTML_Template_Platon |
|
| 'begin' => '<!--', |
'begin' => '<!--', |
| 'end' => '-->', |
'end' => '-->', |
| 'classname' => 'HTML_Template_Platon', |
'classname' => 'HTML_Template_Platon', |
| 'version' => '0.3' |
'version' => '0.4' |
| ); |
); |
| |
|
| var $_tag = array( |
var $_tag = array( |
| Line 179 class HTML_Template_Platon |
|
| Line 180 class HTML_Template_Platon |
|
| |
|
| function setParse($key, $value = '') /* {{{ */ |
function setParse($key, $value = '') /* {{{ */ |
| { |
{ |
| $this->set($key, $value, HTML_TEMPLATE_PLATON_SET_PARSE); |
return $this->set($key, $value, HTML_TEMPLATE_PLATON_SET_PARSE); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function setCode($key, $value = '') /* {{{ */ |
function setCode($key, $value = '') /* {{{ */ |
| { |
{ |
| $this->set($key, $value, HTML_TEMPLATE_PLATON_SET_CODE); |
return $this->set($key, $value, HTML_TEMPLATE_PLATON_SET_CODE); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function setVar($key, $value = '') /* {{{ */ |
function setVar($key, $value = '') /* {{{ */ |
| { |
{ |
| $this->set($key, $value, HTML_TEMPLATE_PLATON_SET_VAR); |
return $this->set($key, $value, HTML_TEMPLATE_PLATON_SET_VAR); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function setValue($key, $value = '') /* {{{ */ |
function setValue($key, $value = '') /* {{{ */ |
| { |
{ |
| $this->set($key, $value); |
return $this->set($key, $value); |
| |
} /* }}} */ |
| |
|
| |
function setAlias($key, $value) /* {{{ */ |
| |
{ |
| |
return $this->setVar($key, $value); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function set($key, $value = '', /* ...) {{{ */ |
function set($key, $value = '', /* ...) {{{ */ |