PHP Класс Sulu\Bundle\ResourceBundle\Resource\FilterListBuilder

Наследование: implements Sulu\Bundle\ResourceBundle\Resource\FilterListBuilderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$expressions Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[]
$filterManager Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface
$listBuilder Sulu\Component\Rest\ListBuilder\ListBuilderInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack

Открытые методы

Метод Описание
__construct ( Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface $manager, Symfony\Component\HttpFoundation\RequestStack $requestStack )
applyFilterToList ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder )

Защищенные методы

Метод Описание
createConjunctionExpression ( array $expressions, string $conjunction ) : Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface Creates a conjunction expression based on the given expressions and conjunction.
createExpression ( Condition $condition, Sulu\Component\Rest\ListBuilder\AbstractFieldDescriptor $fieldDescriptor ) 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 ( Condition $condition ) : mixed 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 ( ConditionGroup $conditionGroup ) Creates a conditions for a condition group.

Описание методов

__construct() публичный Метод

public __construct ( Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface $manager, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$manager Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack

applyFilterToList() публичный Метод

public applyFilterToList ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder )
$listBuilder Sulu\Component\Rest\ListBuilder\ListBuilderInterface

createConjunctionExpression() защищенный Метод

Creates a conjunction expression based on the given expressions and conjunction.
protected createConjunctionExpression ( array $expressions, string $conjunction ) : Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface
$expressions array
$conjunction string
Результат Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface

createExpression() защищенный Метод

Creates expressions from conditions and add them to the expressions array.
protected createExpression ( Condition $condition, Sulu\Component\Rest\ListBuilder\AbstractFieldDescriptor $fieldDescriptor )
$condition Sulu\Bundle\ResourceBundle\Api\Condition
$fieldDescriptor Sulu\Component\Rest\ListBuilder\AbstractFieldDescriptor

getBoolean() защищенный Метод

Returns boolean value if value is 1, true or "true" otherwise false is returned.
protected getBoolean ( $value ) : boolean
$value
Результат boolean

getValue() защищенный Метод

Parses and returns the value of a condition.
protected getValue ( Condition $condition ) : mixed
$condition Sulu\Bundle\ResourceBundle\Api\Condition
Результат mixed

handleCreatedExpressions() защищенный Метод

Handles the previouse created expressions and passes the over to the listbuilder.
protected handleCreatedExpressions ( array $expressions, string $conjunction )
$expressions array
$conjunction string

processConditionGroup() защищенный Метод

Creates a conditions for a condition group.
protected processConditionGroup ( ConditionGroup $conditionGroup )
$conditionGroup Sulu\Bundle\ResourceBundle\Api\ConditionGroup

Описание свойств

$expressions защищенное свойство

protected ExpressionInterface[],Sulu\Component\Rest\ListBuilder\Expression $expressions
Результат Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[]

$filterManager защищенное свойство

protected FilterManagerInterface,Sulu\Bundle\ResourceBundle\Resource $filterManager
Результат Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface

$listBuilder защищенное свойство

protected ListBuilderInterface,Sulu\Component\Rest\ListBuilder $listBuilder
Результат Sulu\Component\Rest\ListBuilder\ListBuilderInterface

$requestStack защищенное свойство

protected RequestStack,Symfony\Component\HttpFoundation $requestStack
Результат Symfony\Component\HttpFoundation\RequestStack