Method |
Description |
|
__clone ( ) |
|
|
_getDumpTags ( &$template ) |
|
|
append ( $tag, $value, $encode = true ) |
Add more content inside a tag. |
|
appendHTML ( $tag, $value ) |
|
|
cloneRegion ( $tag ) |
|
|
del ( $tag ) |
Empty contents of specified region. If region contains sub-hierarchy,
it will be also removed. |
|
dumpTags ( ) |
|
|
eachTag ( $tag, $callable ) |
|
|
exception ( string $message = 'Undefined Exception', string $type = null, string $code = null ) : Exception_Template |
Returns relevant exception class. Use this method with "throw". |
|
findTemplate ( $template_name ) |
template loading and parsing |
|
get ( $tag ) |
Get value of the tag. Note that this may contain an array
if tag contains a structure. |
|
getDefaultSettings ( ) |
This function specifies default settings for SMlite. |
|
getTagRef ( $tag, &$template ) |
This is a helper method which populates an array pointing
to the place in the template referenced by a said tag. |
|
getTagRefList ( $tag, &$template ) |
For methods which execute action on several tags, this method
will return array of templates. You can then iterate
through the array and update all the template values. |
|
hasTag ( $tag ) |
Checks if template has defined a specified tag. |
|
init ( ) |
Template creation, interface functions |
|
isTopTag ( string $tag ) : boolean |
Returns true if specified tag is a top-tag of the template. |
|
is_set ( $tag ) |
Obsolete due to inconsistent naming. |
|
loadTemplate ( $template_name, $ext = null ) |
|
|
loadTemplateFromString ( string $str ) |
Initialize current template from the supplied string. |
|
offsetExists ( $name ) |
{{{ ArrayAccess support |
|
offsetGet ( $name ) |
|
|
offsetSet ( $name, $val ) |
|
|
offsetUnset ( $name ) |
|
|
parseTemplate ( $str ) |
|
|
parseTemplateRecursive ( &$input, &$template ) |
|
|
rebuildTags ( ) |
|
|
rebuildTagsRegion ( &$template ) |
|
|
recursiveRender ( &$template ) |
|
|
regTag ( $tag ) |
|
|
reload ( ) |
Causes the template to be refreshed from it's original source |
|
render ( $region = null ) |
|
|
renderRegion ( &$chunk ) |
|
|
set ( $tag, $value = null, $encode = true ) |
This function will replace region refered by $tag to a new content. |
|
setHTML ( $tag, $value = null ) |
|
|
tryDel ( $tag ) |
Similar to del() but won't throw exception if tag is not present. |
|
trySet ( $tag, $value = null, $encode = true ) |
Check if tag is present inside template. If it does, execute set();
See documentation for set(). |
|
trySetHTML ( $tag, $value = null ) |
Attempt to set value of a tag to a HTML variable. The value is
inserted as-is, while regular set() would HTML-encode the values
to avoid injection. |
|