Template::_build_nodes |
( |
|
$s | ) |
|
|
private |
Template::_get_var |
( |
|
$name, |
|
|
|
$retNoKey = false |
|
) |
| |
|
private |
Template::_preg_error |
( |
| ) |
|
|
private |
Template::_push_stack |
( |
| ) |
|
|
private |
Template::_replcb_debug |
( |
|
$args | ) |
|
|
private |
DEBUG node
{{ debug $var [$var [$var [...]]] }}{{ enddebug }}
replace node with
var_dump($var, $var, ...);
Template::_replcb_for |
( |
|
$args | ) |
|
|
private |
FOR node
{{ for < $var>=""> as $name }}...{{ endfor }} {{ for < $var>=""> as $key=>$name }}...{{ endfor }}
Template::_replcb_if |
( |
|
$args | ) |
|
|
private |
IF node
{{ if < $var>=""> }}...[{{ else }} ...] {{ endif }} {{ if < $var>="">==<val|$var> }}...[{{ else }} ...]{{ endif }} {{ if < $var>="">!=<val|$var> }}...[{{ else }} ...]{{ endif }}
Template::_replcb_inc |
( |
|
$args | ) |
|
|
private |
INC node
{{ inc <templatefile> [with $var1=$var2] }}{{ endinc }}
Template::_replcb_node |
( |
|
$m | ) |
|
|
private |
Template::get_markup_template |
( |
|
$file, |
|
|
|
$root = '' |
|
) |
| |
Template::replace |
( |
|
$s, |
|
|
|
$r |
|
) |
| |
|
private |
Template::replace_macros |
( |
|
$s, |
|
|
|
$r |
|
) |
| |
Template::var_replace |
( |
|
$s | ) |
|
|
private |
regexp: $ literal $ ([)? optional open square bracket ([a-zA-Z0-9-_]+.?)+ var name, followed by optional dot, repeated at least 1 time (?(1)]) if there was opened square bracket (subgrup 1), match close bracket
Referenced by replace_macros().
Template::$name ="internal" |
|
static |
Template::$nodes = array() |
Template::$stack = array() |
The documentation for this class was generated from the following file: