Documentation » API Reference

Application:

Class: Template extends XT



Properties


$path

  • Access: public

The path to the template directory.


$cache = array ()

  • Access: private

A cache for templates read from files, so if they are
called a second or third time, we don't have to read them from
the file system again.


$delim = array (
        array (
'##''##'),
        array (
'\\{''\\}'),
        array (
'\\(''\\)'),
        array (
'\\.\\.\\.''\\.\\.\\.'),
        array (
'<\\!-- put: '' -->'),
        array (
'<spt>''<\\/spt>'),
        array (
'<% '' %>'),
    )

  • Access: public

List of predefined delimiters. A delimiter is a
2-element array with an opening and a closing delimiter
string (must be valid as a regular expression, no escaping
is done for you). Predefined delimiters are: double-pound
(ie. ##tag##), curly braces (ie. {tag}), round braces
(ie. (tag)), and triple-dots (ie. ...tag...).


$delim_literal = array (
        array (
'##''##'),
        array (
'{''}'),
        array (
'('')'),
        array (
'...''...'),
        array (
'<!-- put: '' -->'),
        array (
'<spt>''</spt>'),
        array (
'<% '' %>'),
    )

  • Access: public

List of predefined delimiters, represented minus
the slashes in place for insertion into regular expressions,
as the $delim list is.


$use_delim

  • Access: public

Points to which delimiters to use (from the $delim
array).


$filter 'htmlentities_compat'

Default filter for inserted vars is htmlentities_compat.


$_ignoreUntilEndLoop false

Whether to ignore output until an end loop is found.


$_bufferUntilEndLoop false

Whether to buffer output until an end loop is found.


$_ignoreUntilEndIf false

Whether to ignore output until an end if is found.


$_loopList = array ()

List of loops.


$_loopBuffer ''

Loop buffer.


$_structCount 0

Count of structs (ifs and loops).


$type

  • Access: public

The type of transformation. Can be 'regex', 'func', or 'alternate'.


$key

  • Access: public

The name of the element to which the transformation belongs.


$rule

  • Access: public

The actual transformation rule. See the examples above for format information.

Return to Top



Methods

Return to Top