Class: Template extends XT
Properties
$path
The path to the template directory.
$cache = array ()
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 ('<% ', ' %>'),
)
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 ('<% ', ' %>'),
)
List of predefined delimiters, represented minus
the slashes in place for insertion into regular expressions,
as the $delim list is.
$use_delim
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
The type of transformation. Can be 'regex', 'func', or 'alternate'.
$key
The name of the element to which the transformation belongs.
$rule
The actual transformation rule. See the examples above for format information.
Return to Top
Methods
Return to Top