$parserContext
$parserContext
Implementation of data access to main Thelia objects (users, cart, etc.)
Class AbstractSmartyPlugin
__construct(\Thelia\Core\Security\SecurityContext $securityContext, \Thelia\Core\Template\ParserContext $parserContext)
| \Thelia\Core\Security\SecurityContext | $securityContext | |
| \Thelia\Core\Template\ParserContext | $parserContext |
adminDataAccess(array $params, \Thelia\Core\Template\Smarty\Plugins\unknown $smarty) : string
Provides access to the current logged administrator attributes using the accessors.
| array | $params | |
| \Thelia\Core\Template\Smarty\Plugins\unknown | $smarty |
the value of the requested attribute
customerDataAccess(array $params, \Thelia\Core\Template\Smarty\Plugins\unknown $smarty) : string
Provides access to the current logged customer attributes throught the accessor
| array | $params | |
| \Thelia\Core\Template\Smarty\Plugins\unknown | $smarty |
the value of the requested attribute
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.
userDataAccess( $objectLabel, $context, array $params) : string
Provides access to user attributes using the accessors.
| $objectLabel | ||
| $context | ||
| array | $params |
if the object does not have the requested attribute.
the value of the requested attribute
_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 |