Метод |
Описание |
|
__clone ( ) |
|
|
append ( $tag, $value, $encode = true ) |
This appends static content to region refered by a tag. This function
is useful when you are adding more rows to a list or table. |
|
appendHTML ( $tag, $value ) |
|
|
cloneRegion ( $tag ) |
|
|
debugRender ( ) : string |
|
|
debugRenderRegion ( &$chunk ) : string |
|
|
del ( $tag ) |
|
|
dumpTags ( ) |
Misc functions |
|
eachTag ( $tag, $callable ) |
|
|
exception ( $message = 'Undefined Exception', $type = null, $code = null ) |
|
|
findTemplate ( $template_name ) |
template loading and parsing |
|
get ( $tag ) |
Finds tag and returns contents. |
|
getDefaultSettings ( ) : array |
This function specifies default settings for SMlite. Use
2nd argument for constructor to redefine those settings. |
|
getTagVal ( $tag ) |
|
|
hasTag ( $tag ) |
Check if tag is present inside template |
|
init ( ) |
Template creation, interface functions |
|
isTopTag ( $tag ) : boolean |
|
|
is_set ( $tag ) |
|
|
loadTemplate ( string $template_name, string $ext = null ) |
|
|
loadTemplateFromString ( string $template_string ) |
|
|
myStrTok ( &$string, string $tok ) : string |
|
|
parseTemplate ( &$template, integer $level, integer $pc ) : string |
|
|
rebuildTags ( ) |
Rebuild tags of existing array structure |
|
rebuildTagsRegion ( &$branch ) |
|
|
registerTag ( $key, $npk, &$ref ) |
|
|
render ( ) : string | array |
Template rendering (array -> string) |
|
renderRegion ( &$chunk ) : string | array |
|
|
set ( $tag, $value = null, $encode = true ) |
|
|
setHTML ( $tag, $value = null ) |
|
|
setMessage ( $tag, $args = [] ) |
Provided that the HTML tag contains ICU-compatible message format
string, it will be localized then integrated with passed arguments. |
|
tryDel ( $tag ) |
|
|
trySet ( $tag, $value = null, $encode = true ) |
|
|
trySetHTML ( $tag, $value = null ) |
|
|