$_objType
$_objType : integer
This object type (Smarty = 1, template = 2, data = 4)
Class with shared smarty/template methods
$tpl_vars : array<mixed,\Smarty_Variable>
template variables
$parent : \Smarty|\Smarty_Internal_Template|\Smarty_Internal_Data
parent template (if any)
$ext : \Smarty_Internal_Extension_Handler
extension handler
assign(array|string $tpl_var, mixed $value = null, boolean $nocache = false) : \Smarty_Internal_Data
assigns a Smarty variable
| array|string | $tpl_var | the template variable name(s) |
| mixed | $value | the value to assign |
| boolean | $nocache | if true any output of this variable will be not cached |
current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining
append(array|string $tpl_var, mixed $value = null, boolean $merge = false, boolean $nocache = false) : \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty
appends values to template variables
| array|string | $tpl_var | the template variable name(s) |
| mixed | $value | the value to append |
| boolean | $merge | flag if array elements shall be merged |
| boolean | $nocache | if true any output of this variable will be not cached |
assignGlobal(string $varName, mixed $value = null, boolean $nocache = false) : \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty
assigns a global Smarty variable
| string | $varName | the global variable name |
| mixed | $value | the value to assign |
| boolean | $nocache | if true any output of this variable will be not cached |
appendByRef(string $tpl_var, $value, boolean $merge = false) : \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty
appends values to template variables by reference
| string | $tpl_var | the template variable name |
| $value | ||
| boolean | $merge | flag if array elements shall be merged |
assignByRef(string $tpl_var, $value, boolean $nocache = false) : \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty
assigns values to template variables by reference
| string | $tpl_var | the template variable name |
| $value | ||
| boolean | $nocache | if true any output of this variable will be not cached |
getTemplateVars(string $varName = null, \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr = null, boolean $searchParents = true) : mixed
Returns a single or all template variables
| string | $varName | variable name or null |
| \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty | $_ptr | optional pointer to data object |
| boolean | $searchParents | include parent templates? |
variable value or or array of variables
getVariable(string $variable = null, \Smarty_Internal_Data $_ptr = null, boolean $searchParents = true, boolean $error_enable = true) : \Smarty_Variable|\Smarty_Undefined_Variable
gets the object of a Smarty variable
| string | $variable | the name of the Smarty variable |
| \Smarty_Internal_Data | $_ptr | optional pointer to data object |
| boolean | $searchParents | search also in parent data |
| boolean | $error_enable |
the object of the variable
_mergeVars(\Smarty_Internal_Data|null $data = null)
Follow the parent chain an merge template and config variables
| \Smarty_Internal_Data|null | $data |
| None found |
| None found |
| None found |
_isSmartyObj() : boolean
Return true if this instance is a Smarty obj
| None found |
_getSmartyObj() : \Smarty
Get Smarty object
| None found |
__call(string $name, array $args) : mixed
Handle unknown class methods
| string | $name | unknown method-name |
| array | $args | argument array |
| None found |
fetch(string $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null) : string
fetches a rendered Smarty template
| string | $template | the resource handle of the template file or template object |
| mixed | $cache_id | cache id to be used with this template |
| mixed | $compile_id | compile id to be used with this template |
| object | $parent | next higher level of Smarty variables |
rendered template output
| None found |
display(string $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null)
displays a Smarty template
| string | $template | the resource handle of the template file or template object |
| mixed | $cache_id | cache id to be used with this template |
| mixed | $compile_id | compile id to be used with this template |
| object | $parent | next higher level of Smarty variables |
| None found |
isCached(null|string|\Smarty_Internal_Template $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null) : boolean
test if cache is valid
| null|string|\Smarty_Internal_Template | $template | the resource handle of the template file or template object |
| mixed | $cache_id | cache id to be used with this template |
| mixed | $compile_id | compile id to be used with this template |
| object | $parent | next higher level of Smarty variables |
cache status
| api |
Smarty::isCached() |
|---|
registerPlugin(string $type, string $name, callback $callback, boolean $cacheable = true, mixed $cache_attr = null) : \Smarty|\Smarty_Internal_Template
Registers plugin to be used in templates
| string | $type | plugin type |
| string | $name | name of template tag |
| callback | $callback | PHP callback to register |
| boolean | $cacheable | if true (default) this function is cache able |
| mixed | $cache_attr | caching attributes if any |
when the plugin tag is invalid
| api |
Smarty::registerPlugin() |
|---|
loadFilter(string $type, string $name) : boolean
load a filter of specified type and name
| string | $type | filter type |
| string | $name | filter name |
if filter could not be loaded
| api |
Smarty::loadFilter() |
|---|
registerFilter(string $type, callback $callback, string|null $name = null) : \Smarty|\Smarty_Internal_Template
Registers a filter function
| string | $type | filter type |
| callback | $callback | |
| string|null | $name | optional filter name |
| api |
Smarty::registerFilter() |
|---|
registerObject(string $object_name, object $object, array $allowed_methods_properties = array(), boolean $format = true, array $block_methods = array()) : \Smarty|\Smarty_Internal_Template
Registers object to be used in templates
| string | $object_name | |
| object | $object | the referenced PHP object to register |
| array | $allowed_methods_properties | list of allowed methods (empty = all) |
| boolean | $format | smarty argument format, else traditional |
| array | $block_methods | list of block-methods |
| api |
Smarty::registerObject() |
|---|
| None found |
| None found |
| None found |
| None found |
addAutoloadFilters(mixed $filters, string $type = null) : \Smarty_Internal_TemplateBase
| mixed | $filters | |
| string | $type |
| None found |
addDefaultModifier(mixed $modifiers) : \Smarty_Internal_TemplateBase
| mixed | $modifiers |
| None found |
createData(\Smarty_Internal_Data $parent = null, string $name = null) : \Smarty_Internal_TemplateBase
| \Smarty_Internal_Data | $parent | |
| string | $name |
| None found |
getAutoloadFilters(string $type = null) : array
| string | $type |
| None found |
| None found |
| None found |
| None found |
getRegisteredObject(string $object_name) : object
| string | $object_name |
| None found |
registerCacheResource(string $name, \Smarty_CacheResource $resource_handler) : \Smarty_Internal_TemplateBase
| string | $name | |
| \Smarty_CacheResource | $resource_handler |
| None found |
registerClass(string $class_name, string $class_impl) : \Smarty_Internal_TemplateBase
| string | $class_name | |
| string | $class_impl |
| None found |
registerDefaultConfigHandler(callback $callback) : \Smarty_Internal_TemplateBase
| callback | $callback |
| None found |
registerDefaultPluginHandler(callback $callback) : \Smarty_Internal_TemplateBase
| callback | $callback |
| None found |
registerDefaultTemplateHandler(callback $callback) : \Smarty_Internal_TemplateBase
| callback | $callback |
| None found |
registerResource(string $name, mixed $resource_handler) : \Smarty_Internal_TemplateBase
| string | $name | |
| mixed | $resource_handler |
| None found |
setAutoloadFilters(mixed $filters, string $type = null) : \Smarty_Internal_TemplateBase
| mixed | $filters | |
| string | $type |
| None found |
setDebugTemplate(string $tpl_name) : \Smarty_Internal_TemplateBase
| string | $tpl_name |
| None found |
setDefaultModifier(mixed $modifiers) : \Smarty_Internal_TemplateBase
| mixed | $modifiers |
| None found |
unloadFilter(string $type, string $name) : \Smarty_Internal_TemplateBase
| string | $type | |
| string | $name |
| None found |
unregisterCacheResource(string $name) : \Smarty_Internal_TemplateBase
| string | $name |
| None found |
unregisterObject(string $object_name) : \Smarty_Internal_TemplateBase
| string | $object_name |
| None found |
unregisterPlugin(string $type, string $name) : \Smarty_Internal_TemplateBase
| string | $type | |
| string | $name |
| None found |
unregisterFilter(string $type, mixed $callback) : \Smarty_Internal_TemplateBase
| string | $type | |
| mixed | $callback |
| None found |
unregisterResource(string $name) : \Smarty_Internal_TemplateBase
| string | $name |
| None found |
| None found |
getConfigVariable(string $varName, boolean $errorEnable = true) : mixed
| string | $varName | |
| boolean | $errorEnable |
| None found |
getConfigVars(string $varName = null, boolean $searchParents = true) : mixed
| string | $varName | |
| boolean | $searchParents |
| None found |
| None found |
getStreamVariable(string $variable) : mixed
| string | $variable |
| None found |
clearAssign(mixed $tpl_var) : \Smarty_Internal_Data
| mixed | $tpl_var |
| None found |
| None found |
clearConfig(string $varName = null) : \Smarty_Internal_Data
| string | $varName |
| None found |
configLoad(string $config_file, mixed $sections = null, string $scope = 'local') : \Smarty_Internal_Data
| string | $config_file | |
| mixed | $sections | |
| string | $scope |
| None found |
_execute(string $template, mixed $cache_id, mixed $compile_id, object $parent, string $function) : mixed
fetches a rendered Smarty template
| string | $template | the resource handle of the template file or template object |
| mixed | $cache_id | cache id to be used with this template |
| mixed | $compile_id | compile id to be used with this template |
| object | $parent | next higher level of Smarty variables |
| string | $function | function type 0 = fetch, 1 = display, 2 = isCache |
| None found |