abstract |
---|
Base class with template and variable methods
Methods | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
public
|
__construct()
Smarty_Internal_Data constructor.
Smarty_Internal_Data constructor. Install extension handler Overriden by |
# | ||||||||
public
|
assign(array|string $tpl_var, mixed $value = null, boolean $nocache = false): Smarty_Internal_Data
assigns a Smarty variable
assigns a Smarty variable Parameters
Returnscurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining |
# | ||||||||
public
|
append(
array|string $tpl_var,
mixed $value = null,
bool $merge = false,
bool $nocache = false,
): Smarty_Internal_Data|Smarty_Internal_Template|Smarty
appends values to template variables
appends values to template variables Parameters
|
# | ||||||||
public
|
assignGlobal(
string $varName,
mixed $value = null,
boolean $nocache = false,
): Smarty_Internal_Data|Smarty_Internal_Template|Smarty
assigns a global Smarty variable
assigns a global Smarty variable Parameters
|
# | ||||||||
public
|
appendByRef(
string $tpl_var,
mixed &$value,
boolean $merge = false,
): Smarty_Internal_Data|Smarty_Internal_Template|Smarty
appends values to template variables by reference
appends values to template variables by reference Parameters
|
# | ||||||||
public
|
assignByRef(string $tpl_var, &$value, boolean $nocache = false): Smarty_Internal_Data|Smarty_Internal_Template|Smarty
assigns values to template variables by reference
assigns values to template variables by reference Parameters
|
# | ||||||||
public
|
getTemplateVars(
string $varName = null,
Smarty_Internal_Data|Smarty_Internal_Template|Smarty $_ptr = null,
bool $searchParents = true,
): mixed
Returns a single or all template variables
Returns a single or all template variables Parameters
Returnsvariable value or or array of variables |
# | ||||||||
public
|
getVariable(
string $variable = null,
Smarty_Internal_Data $_ptr = null,
boolean $searchParents = true,
bool $error_enable = true,
): Smarty_Variable|Smarty_Undefined_Variable
gets the object of a Smarty variable
gets the object of a Smarty variable Deprecatedsince 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead. Parameters
Returnsthe object of the variable |
# | ||||||||
public
|
_mergeVars(Smarty_Internal_Data|null $data = null)
Follow the parent chain an merge template and config variables
Follow the parent chain an merge template and config variables |
# | ||||||||
public
|
_isDataObj(): bool
Return true if this instance is a Data obj
Return true if this instance is a Data obj |
# | ||||||||
public
|
_isTplObj(): bool
Return true if this instance is a template obj
Return true if this instance is a template obj |
# | ||||||||
public
|
_isSmartyObj(): bool
Return true if this instance is a Smarty obj
Return true if this instance is a Smarty obj |
# | ||||||||
public
|
_getSmartyObj(): Smarty
Get Smarty object
|
# | ||||||||
public
|
__call(string $name, array $args): mixed
Handle unknown class methods
Handle unknown class methods Parameters
Overriden by |
# | ||||||||
public
|
_getConfigVariable(string $varName, bool $errorEnable = true): mixed
|
# | ||||||||
public
|
getConfigVariable(string $varName, bool $errorEnable = true): mixed
|
# | ||||||||
public
|
getConfigVars(string $varName = null, bool $searchParents = true): mixed
|
# | ||||||||
public
|
getGlobal(string $varName = null): mixed
|
# | ||||||||
public
|
getStreamVariable(string $variable): mixed
|
# | ||||||||
public
|
clearAssign(mixed $tpl_var): Smarty_Internal_Data
|
# | ||||||||
public
|
clearAllAssign(): Smarty_Internal_Data
|
# | ||||||||
public
|
clearConfig(string $varName = null): Smarty_Internal_Data
|
# | ||||||||
public
|
configLoad(string $config_file, mixed $sections = null, string $scope = "'local'"): Smarty_Internal_Data
|
# |
Properties | |||
---|---|---|---|
public
|
int
|
$_objType = 4
|
# |
public
|
string
|
$template_class = 'Smarty_Internal_Template'
|
# |
public
|
Smarty_Variable[]
|
$tpl_vars = []
|
# |
public
|
Smarty|Smarty_Internal_Template|Smarty_Data
|
$parent = null
|
# |
public
|
string[]
|
$config_vars = []
|
# |
public
|
Smarty_Internal_Extension_Handler
|
$ext = null
|
# |
public
|
int
|
$scope
|
# |
public
|
Smarty
|
$smarty
|
# |