PHP 클래스 Sulu\Bundle\ResourceBundle\Resource\FilterListBuilder

상속: implements Sulu\Bundle\ResourceBundle\Resource\FilterListBuilderInterface
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$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