Property | Type | Description | |
---|---|---|---|
$expressions | Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[] | ||
$filterManager | Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface | ||
$listBuilder | Sulu\Component\Rest\ListBuilder\ListBuilderInterface | ||
$requestStack | Symfony\Component\HttpFoundation\RequestStack |
Method | Description | |
---|---|---|
__construct ( Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface $manager, Symfony\Component\HttpFoundation\RequestStack $requestStack ) | ||
applyFilterToList ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder ) |
Method | Description | |
---|---|---|
createConjunctionExpression ( array $expressions, string $conjunction ) : Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface | Creates a conjunction expression based on the given expressions and conjunction. | |
createExpression ( |
Creates expressions from conditions and add them to the expressions array. | |
getBoolean ( $value ) : boolean | Returns boolean value if value is 1, true or "true" otherwise false is returned. | |
getValue ( |
Parses and returns the value of a condition. | |
handleCreatedExpressions ( array $expressions, string $conjunction ) | Handles the previouse created expressions and passes the over to the listbuilder. | |
processConditionGroup ( |
Creates a conditions for a condition group. |
public __construct ( Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface $manager, Symfony\Component\HttpFoundation\RequestStack $requestStack ) | ||
$manager | Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface | |
$requestStack | Symfony\Component\HttpFoundation\RequestStack |
public applyFilterToList ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder ) | ||
$listBuilder | Sulu\Component\Rest\ListBuilder\ListBuilderInterface |
protected createConjunctionExpression ( array $expressions, string $conjunction ) : Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface | ||
$expressions | array | |
$conjunction | string | |
return | Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface |
protected createExpression ( |
||
$condition | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\AbstractFieldDescriptor |
protected getBoolean ( $value ) : boolean | ||
$value | ||
return | boolean |
protected handleCreatedExpressions ( array $expressions, string $conjunction ) | ||
$expressions | array | |
$conjunction | string |
protected processConditionGroup ( |
||
$conditionGroup |
protected ExpressionInterface[],Sulu\Component\Rest\ListBuilder\Expression $expressions | ||
return | Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[] |
protected FilterManagerInterface,Sulu\Bundle\ResourceBundle\Resource $filterManager | ||
return | Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface |
protected ListBuilderInterface,Sulu\Component\Rest\ListBuilder $listBuilder | ||
return | Sulu\Component\Rest\ListBuilder\ListBuilderInterface |