\Smarty_Internal_Method_GetTemplateVars

Smarty Method GetTemplateVars

Smarty::getTemplateVars() method

Summary

Methods
Properties
Constants
getTemplateVars()
_getVariable()
$objMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$objMap

$objMap : integer

Valid for all objects

Type

integer

Methods

getTemplateVars()

getTemplateVars(\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty  $data, string  $varName = null, \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty  $_ptr = null, boolean  $searchParents = true) : mixed

Returns a single or all template variables

Parameters

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data
string $varName

variable name or null

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr

optional pointer to data object

boolean $searchParents

include parent templates?

Returns

mixed —

variable value or or array of variables

_getVariable()

_getVariable(\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty  $data, string  $varName, \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty  $_ptr = null, boolean  $searchParents = true, boolean  $errorEnable = true) : \Smarty_Variable

gets the object of a Smarty variable

Parameters

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data
string $varName

the name of the Smarty variable

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr

optional pointer to data object

boolean $searchParents

search also in parent data

boolean $errorEnable

Returns

\Smarty_Variable