Class with shared template methodes
package | Smarty |
---|---|
subpackage | Template |
__call(string $name, array $args)
string
unknown method-name
array
argument array
_get_filter_name(callback $function_name) : string
callback
string
internal filter nameappend(array | string $tpl_var, mixed $value, boolean $merge, boolean $nocache) : \Smarty_Internal_Data
inherited_from | \Smarty_Internal_Data::append() |
---|
array
string
the template variable name(s)
mixed
the value to append
boolean
flag if array elements shall be merged
boolean
if true any output of this variable will be not cached
\Smarty_Internal_Data
current 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() |
---|
string
the template variable name
mixed
&$value the referenced value to append
boolean
flag if array elements shall be merged
\Smarty_Internal_Data
current 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() |
---|
array
string
the template variable name(s)
mixed
the value to assign
boolean
if true any output of this variable will be not cached
\Smarty_Internal_Data
current 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() |
---|
string
the template variable name
boolean
if true any output of this variable will be not cached
\Smarty_Internal_Data
current 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() |
---|
string
the global variable name
mixed
the value to assign
boolean
if true any output of this variable will be not cached
\Smarty_Internal_Data
current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingclearAllAssign() : \Smarty_Internal_Data
inherited_from | \Smarty_Internal_Data::clearAllAssign() |
---|
\Smarty_Internal_Data
current 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() |
---|
string
array
the template variable(s) to clear
\Smarty_Internal_Data
current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingclearConfig(string $varname) : \Smarty_Internal_Data
inherited_from | \Smarty_Internal_Data::clearConfig() |
---|
string
variable name or null
\Smarty_Internal_Data
current 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() |
---|
string
filename
mixed
array of section names, single section or null
\Smarty_Internal_Data
current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chainingcreateData(object $parent)
returns | Smarty_Data data object |
---|
object
next higher level of Smarty variables
display(string $template, mixed $cache_id, mixed $compile_id, object $parent)
string
the resource handle of the template file or template object
mixed
cache id to be used with this template
mixed
compile id to be used with this template
object
next 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
string
the resource handle of the template file or template object
mixed
cache id to be used with this template
mixed
compile id to be used with this template
object
next higher level of Smarty variables
bool
true: display, false: fetch
bool
if true parent template variables merged in to local scope
bool
if true do not run output filter
string
rendered template outputgetConfigVariable(string $variable, $error_enable) : mixed
inherited_from | \Smarty_Internal_Data::getConfigVariable() |
---|
string
the name of the config variable
mixed
the value of the config variablegetConfigVars(string $varname, $search_parents) : string
inherited_from | \Smarty_Internal_Data::getConfigVars() |
---|
string
variable name or null
string
variable value or or array of variablesgetRegisteredObject(string $name) : object
string
object name
\SmartyException |
if no such object is found |
---|
object
getStreamVariable(string $variable) : mixed
inherited_from | \Smarty_Internal_Data::getStreamVariable() |
---|
string
the stream of the variable
mixed
the value of the stream variablegetTemplateVars(string $varname, string $_ptr, boolean $search_parents) : string
inherited_from | \Smarty_Internal_Data::getTemplateVars() |
---|
string
variable name or null
string
optional pointer to data object
boolean
include parent templates?
string
variable value or or array of variablesgetVariable(string $variable, object $_ptr, boolean $search_parents, $error_enable) : object
inherited_from | \Smarty_Internal_Data::getVariable() |
---|
string
the name of the Smarty variable
object
optional pointer to data object
boolean
search also in parent data
object
the object of the variableisCached(string | object $template, mixed $cache_id, mixed $compile_id, object $parent) : boolean
string
object
the resource handle of the template file or template object
mixed
cache id to be used with this template
mixed
compile id to be used with this template
object
next higher level of Smarty variables
boolean
cache statusloadFilter(string $type, string $name)
string
filter type
string
filter name
\SmartyException |
if filter could not be loaded |
---|
registerCacheResource(string $type, \Smarty_CacheResource $callback) : \Smarty_Internal_Templatebase
string
name of cache resource type
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterClass($class_name, string $class_impl) : \Smarty_Internal_Templatebase
string
the referenced PHP class to register
\SmartyException |
if $class_impl does not refer to an existing class |
---|
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterDefaultConfigHandler(callable $callback) : \Smarty_Internal_Templatebase
callable
class/method name
\SmartyException |
if $callback is not callable |
---|
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterDefaultPluginHandler(callable $callback) : \Smarty_Internal_Templatebase
callable
class/method name
\SmartyException |
if $callback is not callable |
---|
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterDefaultTemplateHandler(callable $callback) : \Smarty_Internal_Templatebase
callable
class/method name
\SmartyException |
if $callback is not callable |
---|
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterFilter(string $type, callback $callback) : \Smarty_Internal_Templatebase
string
filter type
callback
\Smarty_Internal_Templatebase
current 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
object
the referenced PHP object to register
array
list of allowed methods (empty = all)
boolean
smarty argument format, else traditional
array
list of block-methods
\SmartyException |
if any of the methods in $allowed or $block_methods are invalid |
---|
\Smarty_Internal_Templatebase
current 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
string
plugin type
string
name of template tag
callback
PHP callback to register
boolean
if true (default) this fuction is cachable
array
caching attributes if any
\SmartyException |
when the plugin tag is invalid |
---|
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingregisterResource(string $type, \Smarty_Resource | array $callback) : \Smarty_Internal_Templatebase
string
name of resource type
\Smarty_Resource
array
or instance of Smarty_Resource, or array of callbacks to handle resource (deprecated)
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunloadFilter(string $type, string $name) : \Smarty_Internal_Templatebase
string
filter type
string
filter name
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterCacheResource(string $type) : \Smarty_Internal_Templatebase
string
name of cache resource type
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterFilter(string $type, callback $callback) : \Smarty_Internal_Templatebase
string
filter type
callback
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterObject(string $name) : \Smarty_Internal_Templatebase
string
object name
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterPlugin(string $type, string $tag) : \Smarty_Internal_Templatebase
string
of plugin
string
name of plugin
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingunregisterResource(string $type) : \Smarty_Internal_Templatebase
string
name of resource type
\Smarty_Internal_Templatebase
current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chainingreplaceCamelcase(string $match) : string
string
match string
string
replacemant$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 |
---|