Smarty_Internal_Runtime_UpdateScope
Runtime Extension updateScope
- Full name:
\Smarty_Internal_Runtime_UpdateScope
Methods
_updateScope
Update new assigned template or config variable in other effected scopes
Parameters:
Parameter | Type | Description |
---|---|---|
$tpl |
\Smarty_Internal_Template | data object |
$varName |
string|null | variable name |
$tagScope |
int | tag scope to which bubble up variable value |
_getAffectedScopes
Get array of objects which needs to be updated by given scope value
Parameters:
Parameter | Type | Description |
---|---|---|
$tpl |
\Smarty_Internal_Template | |
$mergedScope |
int | merged tag and template scope to which bubble up variable value |
_updateVariableInOtherScope
Update variable in other scope
public _updateVariableInOtherScope(array& $tpl_vars, \Smarty_Internal_Template $from, string $varName): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$tpl_vars |
array | template variable array |
$from |
\Smarty_Internal_Template | |
$varName |
string | variable name |
_updateVarStack
Update variable in template local variable stack
Parameters:
Parameter | Type | Description |
---|---|---|
$tpl |
\Smarty_Internal_Template | |
$varName |
string|null | variable name or null for config variables |
Automatically generated on 2025-03-18