appends values to template variables
Smarty_Internal_Data
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
-
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
Smarty_Internal_Data
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
-
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
Smarty_Internal_Data
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.
clear the given assigned template variable.
-
string|array
$tpl_var: the template variable(s) to clear
Deassigns a single or all config variables
-
string
$varname: variable name or null
load a config file, optionally load just selected sections
-
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