\Smarty_Internal_Runtime_UpdateScope

Runtime Extension updateScope

Summary

Methods
Properties
Constants
_updateScope()
_getAffectedScopes()
_updateVariableInOtherScope()
_updateVarStack()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

_updateScope()

_updateScope(\Smarty_Internal_Template  $tpl, string|null  $varName, integer  $tagScope) 

Update new assigned template or config variable in other effected scopes

Parameters

\Smarty_Internal_Template $tpl

data object

string|null $varName

variable name

integer $tagScope

tag scope to which bubble up variable value

_getAffectedScopes()

_getAffectedScopes(\Smarty_Internal_Template  $tpl, integer  $mergedScope) : array

Get array of objects which needs to be updated by given scope value

Parameters

\Smarty_Internal_Template $tpl
integer $mergedScope

merged tag and template scope to which bubble up variable value

Returns

array

_updateVariableInOtherScope()

_updateVariableInOtherScope(array  $tpl_vars, \Smarty_Internal_Template  $from, string  $varName) 

Update varibale in other scope

Parameters

array $tpl_vars

template variable array

\Smarty_Internal_Template $from
string $varName

variable name

_updateVarStack()

_updateVarStack(\Smarty_Internal_Template  $tpl, string|null  $varName) 

Update variable in template local variable stack

Parameters

\Smarty_Internal_Template $tpl
string|null $varName

variable name or null for config variables