$request
$request : \Symfony\Component\HttpFoundation\Request
Title loop
Class Title
$securityContext : \Thelia\Core\Security\SecurityContext
exec(mixed $pagination) : mixed
this function have to be implement in your own loop class.
All your parameters are defined in defineArgs() and can be accessible like a class property.
example :
public function defineArgs() { return array ( "ref", "id" => "optional", "stock" => array( "optional", "default" => 10 ) ); }
you can retrieve ref value using $this->ref
| mixed | $pagination |
__construct(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, \Thelia\Core\Security\SecurityContext $securityContext)
Create a new Loop
| \Symfony\Component\HttpFoundation\Request | $request | |
| \Symfony\Component\EventDispatcher\EventDispatcherInterface | $dispatcher | |
| \Thelia\Core\Security\SecurityContext | $securityContext |
__call(string $name, mixed $arguments) : null
Provides a getter to loop parameters
| string | $name | the methode name (only getArgname is supported) |
| mixed | $arguments | this parameter is ignored |
if the parameter is unknown or the method name is not supported.
getArg(string $argumentName) : \Thelia\Core\Template\Loop\Argument\Argument
Return a loop argument
| string | $argumentName | the argument name |
if argument is not found in loop argument list
the loop argument.
getArgValue(string $argumentName) : \Thelia\Core\Template\Loop\Argument\Argument
Return a loop argument value
| string | $argumentName | the argument name |
if argument is not found in loop argument list
the loop argument.
getArgDefinitions() : \Thelia\Core\Template\Loop\Argument\ArgumentCollection
define all args used in your loop
array key is your arg name.
example :
return array ( "ref", "id" => "optional", "stock" => array( "optional", "default" => 10 ) );