$securityContext
$securityContext
The class all Smarty Thelia plugin shoud extend
Class AbstractSmartyPlugin
__construct(\Thelia\Core\Security\SecurityContext $securityContext)
| \Thelia\Core\Security\SecurityContext | $securityContext |
getNormalizedParam(array $params, mixed $name, mixed $default) : mixed
Get a function or block parameter value, and normalize it, trimming balnks and making it lowercase
| array | $params | the parameters array |
| mixed | $name | as single parameter name, or an array of names. In this case, the first defined parameter is returned. Use this for aliases (context, ctx, c) |
| mixed | $default | the defaut value if parameter is missing (default to null) |
the parameter value, or the default value if it is not found.
getParam(array $params, mixed $name, mixed $default) : mixed
Get a function or block parameter value
| array | $params | the parameters array |
| mixed | $name | as single parameter name, or an array of names. In this case, the first defined parameter is returned. Use this for aliases (context, ctx, c) |
| mixed | $default | the defaut value if parameter is missing (default to null) |
the parameter value, or the default value if it is not found.
_explode(\Thelia\Core\Template\Smarty\unknown $commaSeparatedValues) : \Thelia\Core\Template\Smarty\multitype:
Explode a comma separated list in a array, trimming all array elements
| \Thelia\Core\Template\Smarty\unknown | $commaSeparatedValues |