TplFunction Runtime Methods callTemplateFunction
Methods | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public
|
callTemplateFunction(Smarty_Internal_Template $tpl, string $name, array $params, bool $nocache)
Call template function
Call template function Parameters
Throws
|
# | ||||||||||
public
|
registerTplFunctions(
Smarty|Smarty_Internal_Template|Smarty_Internal_TemplateBase $obj,
array $tplFunctions,
bool $override = true,
)
Register template functions defined by template
Register template functions defined by template Parameters
|
# | ||||||||||
public
|
getTplFunction(Smarty_Internal_Template $tpl, null|string $name = null): array|bool|mixed
Return source parameter array for single or all template functions
Return source parameter array for single or all template functions Parameters
|
# | ||||||||||
public
|
addTplFuncToCache(Smarty_Internal_Template $tpl, string $_name, string $_function): bool
Add template function to cache file for nocache calls
Add template function to cache file for nocache calls Parameters
|
# | ||||||||||
public
|
saveTemplateVariables(Smarty_Internal_Template $tpl, string $name)
Save current template variables on stack
Save current template variables on stack Parameters
|
# | ||||||||||
public
|
restoreTemplateVariables(Smarty_Internal_Template $tpl, string $name)
Restore saved variables into template objects
Restore saved variables into template objects Parameters
|
# |