appends values to template variables
void
append
(array|string $tpl_var, [mixed $value = null], [boolean $merge = false], [boolean $nocache = false])
-
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
appends values to template variables by reference
void
appendByRef
(string $tpl_var, mixed &$value, [boolean $merge = false])
-
string
$tpl_var: the template variable name
-
mixed
&$value: the referenced value to append
-
boolean
$merge: flag if array elements shall be merged
assigns a Smarty variable
void
assign
(array|string $tpl_var, [mixed $value = null], [boolean $nocache = false], boolean $scope)
-
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
-
boolean
$scope: the scope the variable will have (local,parent or root)
assigns values to template variables by reference
void
assignByRef
(string $tpl_var, &$value, [boolean $nocache = false], mixed $)
-
string
$tpl_var: the template variable name
-
mixed
$: &$value the referenced value to assign
-
boolean
$nocache: if true any output of this variable will be not cached
-
&$value
assigns a global Smarty variable
void
assignGlobal
(string $varname, [mixed $value = null], [boolean $nocache = false])
-
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
clear all the assigned template variables.
void
clearAllAssign
()
clear the given assigned template variable.
void
clearAssign
(string|array $tpl_var)
-
string|array
$tpl_var: the template variable(s) to clear
Deassigns a single or all config variables
void
clearConfig
([string $varname = null])
-
string
$varname: variable name or null
load a config file, optionally load just selected sections
void
configLoad
(string $config_file, [mixed $sections = null])
-
string
$config_file: filename
-
mixed
$sections: array of section names, single section or null
gets a config variable
mixed
getConfigVariable
(string $variable, [ $error_enable = true])
-
string
$variable: the name of the config variable
-
$error_enable
Returns a single or all config variables
string
getConfigVars
([string $varname = null], [ $search_parents = true])
-
string
$varname: variable name or null
-
$search_parents
gets a stream variable
mixed
getStreamVariable
(string $variable)
-
string
$variable: the stream of the variable
Returns a single or all template variables
string
getTemplateVars
([string $varname = null], [string $_ptr = null], [boolean $search_parents = true])
-
string
$varname: variable name or null
-
string
$_ptr: optional pointer to data object
-
boolean
$search_parents: include parent templates?
gets the object of a Smarty variable
object the
getVariable
(string $variable, [object $_ptr = null], [boolean $search_parents = true], [ $error_enable = true])
-
string
$variable: the name of the Smarty variable
-
object
$_ptr: optional pointer to data object
-
boolean
$search_parents: search also in parent data
-
$error_enable