XML-style template engine.
More...
|
| | extend ($tag, $func) |
| |
| | __call ($func, array $args) |
| |
| | parse ($text) |
| |
| | __construct () |
| |
| | token ($str) |
| |
| | resolve ($str, array $hive=NULL) |
| |
| | render ($file, $mime='text/html', array $hive=NULL, $ttl=0) |
| |
| | esc ($arg) |
| |
| | raw ($arg) |
| |
| | alias ($key, $arg=null) |
| |
| | render ($file, $mime='text/html', array $hive=NULL, $ttl=0) |
| |
| | afterrender ($func) |
| |
|
|
| $custom =array() |
| | Custom tag handlers.
|
| |
|
|
const | E_Method ='Call to undefined method %s()' |
| |
|
| $trigger |
| | post-rendering handler
|
| |
|
| $level =0 |
| | Nesting level.
|
| |
XML-style template engine.
| Template::__construct |
( |
| ) |
|
Class constructor return object
| Template::__call |
( |
|
$func, |
|
|
array |
$args |
|
) |
| |
Call custom tag handler
- Returns
- string|FALSE
- Parameters
-
| Template::_case |
( |
array |
$node | ) |
|
|
protected |
Template -case- tag handler
- Returns
- string
- Parameters
-
| Template::_check |
( |
array |
$node | ) |
|
|
protected |
Template -check- tag handler
- Returns
- string
- Parameters
-
| Template::_default |
( |
array |
$node | ) |
|
|
protected |
Template -default- tag handler
- Returns
- string
- Parameters
-
Template -exclude- tag handler
- Returns
- string
| Template::_false |
( |
array |
$node | ) |
|
|
protected |
Template -false- tag handler
- Returns
- string
- Parameters
-
| Template::_ignore |
( |
array |
$node | ) |
|
|
protected |
Template -ignore- tag handler
- Returns
- string
- Parameters
-
| Template::_include |
( |
array |
$node | ) |
|
|
protected |
Template -include- tag handler
- Returns
- string
- Parameters
-
| Template::_loop |
( |
array |
$node | ) |
|
|
protected |
Template -loop- tag handler
- Returns
- string
- Parameters
-
| Template::_repeat |
( |
array |
$node | ) |
|
|
protected |
Template -repeat- tag handler
- Returns
- string
- Parameters
-
| Template::_set |
( |
array |
$node | ) |
|
|
protected |
Template -set- tag handler
- Returns
- string
- Parameters
-
| Template::_switch |
( |
array |
$node | ) |
|
|
protected |
Template -switch- tag handler
- Returns
- string
- Parameters
-
| Template::_true |
( |
array |
$node | ) |
|
|
protected |
Template -true- tag handler
- Returns
- string
- Parameters
-
Assemble markup
- Returns
- string
- Parameters
-
| Template::extend |
( |
|
$tag, |
|
|
|
$func |
|
) |
| |
Extend template with custom tag
- Returns
- NULL
- Parameters
-
Parse string for template directives and tokens
- Returns
- string|array
- Parameters
-
The documentation for this class was generated from the following file: