Class with shared template methodes
| package | Smarty |
|---|---|
| subpackage | Template |
__call(string $name, array $args)
stringunknown method-name
arrayargument array
_get_filter_name(callback $function_name) : string
callback
stringinternal filter nameappend(array | string $tpl_var, mixed $value, boolean $merge, boolean $nocache) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::append() |
|---|
arraystringthe template variable name(s)
mixedthe value to append
booleanflag if array elements shall be merged
booleanif true any output of this variable will be not cached
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingappendByRef(string $tpl_var, mixed $value, boolean $merge) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::appendByRef() |
|---|
stringthe template variable name
mixed&$value the referenced value to append
booleanflag if array elements shall be merged
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingassign(array | string $tpl_var, mixed $value, boolean $nocache) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::assign() |
|---|
arraystringthe template variable name(s)
mixedthe value to assign
booleanif true any output of this variable will be not cached
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingassignByRef(string $tpl_var, $value, boolean $nocache) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::assignByRef() |
|---|
stringthe template variable name
booleanif true any output of this variable will be not cached
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingassignGlobal(string $varname, mixed $value, boolean $nocache) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::assignGlobal() |
|---|
stringthe global variable name
mixedthe value to assign
booleanif true any output of this variable will be not cached
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingclearAllAssign() : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::clearAllAssign() |
|---|
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingclearAssign(string | array $tpl_var) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::clearAssign() |
|---|
stringarraythe template variable(s) to clear
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingclearConfig(string $varname) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::clearConfig() |
|---|
stringvariable name or null
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingconfigLoad(string $config_file, mixed $sections) : \Smarty_Internal_Data
| inherited_from | \Smarty_Internal_Data::configLoad() |
|---|
stringfilename
mixedarray of section names, single section or null
\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingcreateData(object $parent)
| returns | Smarty_Data data object |
|---|
objectnext higher level of Smarty variables
display(string $template, mixed $cache_id, mixed $compile_id, object $parent)
stringthe resource handle of the template file or template object
mixedcache id to be used with this template
mixedcompile id to be used with this template
objectnext higher level of Smarty variables
fetch(string $template, mixed $cache_id, mixed $compile_id, object $parent, bool $display, bool $merge_tpl_vars, bool $no_output_filter) : string
stringthe resource handle of the template file or template object
mixedcache id to be used with this template
mixedcompile id to be used with this template
objectnext higher level of Smarty variables
booltrue: display, false: fetch
boolif true parent template variables merged in to local scope
boolif true do not run output filter
stringrendered template outputgetConfigVariable(string $variable, $error_enable) : mixed
| inherited_from | \Smarty_Internal_Data::getConfigVariable() |
|---|
stringthe name of the config variable
mixedthe value of the config variablegetConfigVars(string $varname, $search_parents) : string
| inherited_from | \Smarty_Internal_Data::getConfigVars() |
|---|
stringvariable name or null
stringvariable value or or array of variablesgetRegisteredObject(string $name) : object
stringobject name
\SmartyException |
if no such object is found |
|---|
objectgetStreamVariable(string $variable) : mixed
| inherited_from | \Smarty_Internal_Data::getStreamVariable() |
|---|
stringthe stream of the variable
mixedthe value of the stream variablegetTemplateVars(string $varname, string $_ptr, boolean $search_parents) : string
| inherited_from | \Smarty_Internal_Data::getTemplateVars() |
|---|
stringvariable name or null
stringoptional pointer to data object
booleaninclude parent templates?
stringvariable value or or array of variablesgetVariable(string $variable, object $_ptr, boolean $search_parents, $error_enable) : object
| inherited_from | \Smarty_Internal_Data::getVariable() |
|---|
stringthe name of the Smarty variable
objectoptional pointer to data object
booleansearch also in parent data
objectthe object of the variableisCached(string | object $template, mixed $cache_id, mixed $compile_id, object $parent) : boolean
stringobjectthe resource handle of the template file or template object
mixedcache id to be used with this template
mixedcompile id to be used with this template
objectnext higher level of Smarty variables
booleancache statusloadFilter(string $type, string $name)
stringfilter type
stringfilter name
\SmartyException |
if filter could not be loaded |
|---|
registerCacheResource(string $type, \Smarty_CacheResource $callback) : \Smarty_Internal_Templatebase
stringname of cache resource type
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterClass($class_name, string $class_impl) : \Smarty_Internal_Templatebase
stringthe referenced PHP class to register
\SmartyException |
if $class_impl does not refer to an existing class |
|---|
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterDefaultConfigHandler(callable $callback) : \Smarty_Internal_Templatebase
callableclass/method name
\SmartyException |
if $callback is not callable |
|---|
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterDefaultPluginHandler(callable $callback) : \Smarty_Internal_Templatebase
callableclass/method name
\SmartyException |
if $callback is not callable |
|---|
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterDefaultTemplateHandler(callable $callback) : \Smarty_Internal_Templatebase
callableclass/method name
\SmartyException |
if $callback is not callable |
|---|
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterFilter(string $type, callback $callback) : \Smarty_Internal_Templatebase
stringfilter type
callback
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterObject($object_name, object $object_impl, array $allowed, boolean $smarty_args, array $block_methods) : \Smarty_Internal_Templatebase
objectthe referenced PHP object to register
arraylist of allowed methods (empty = all)
booleansmarty argument format, else traditional
arraylist of block-methods
\SmartyException |
if any of the methods in $allowed or $block_methods are invalid |
|---|
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterPlugin(string $type, string $tag, callback $callback, boolean $cacheable, array $cache_attr) : \Smarty_Internal_Templatebase
stringplugin type
stringname of template tag
callbackPHP callback to register
booleanif true (default) this fuction is cachable
arraycaching attributes if any
\SmartyException |
when the plugin tag is invalid |
|---|
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterResource(string $type, \Smarty_Resource | array $callback) : \Smarty_Internal_Templatebase
stringname of resource type
\Smarty_Resourcearrayor instance of Smarty_Resource, or array of callbacks to handle resource (deprecated)
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunloadFilter(string $type, string $name) : \Smarty_Internal_Templatebase
stringfilter type
stringfilter name
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterCacheResource(string $type) : \Smarty_Internal_Templatebase
stringname of cache resource type
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterFilter(string $type, callback $callback) : \Smarty_Internal_Templatebase
stringfilter type
callback
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterObject(string $name) : \Smarty_Internal_Templatebase
stringobject name
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterPlugin(string $type, string $tag) : \Smarty_Internal_Templatebase
stringof plugin
stringname of plugin
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterResource(string $type) : \Smarty_Internal_Templatebase
stringname of resource type
\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingreplaceCamelcase(string $match) : string
stringmatch string
stringreplacemant$config_vars : array
| inherited_from | \Smarty_Internal_Data::$$config_vars |
|---|
$template_class : string
| inherited_from | \Smarty_Internal_Data::$$template_class |
|---|
$tpl_vars : array
| inherited_from | \Smarty_Internal_Data::$$tpl_vars |
|---|