Handy helper class to generate and manipulate filter arrays.
__construct(array $filter, bool $isRoot)
array
Optional base filter array.
bool
Flag determining if the current filter is a root filter.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid filter array has been passed. |
---|
checkNotRoot() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When the builder is for an root filter. |
---|
checkValidOperation(string $operation) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder
string
The operation to check.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid operation name has been passed. |
---|
encapsulateOr() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\OrFilterBuilder
fromArray(array $filter) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder
array
The initial filter array (optional).
fromArrayForRoot(array $filter) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder
array
The initial filter array (optional).
getAllAsArray() : array
array
getBuilderFromArray(array $filter, \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder $builder) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
array
The filter.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder
The builder instance.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid operation is encountered. |
---|
getFilter() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\AndFilterBuilder
isRootFilter() : bool
bool
isValidOperation(string $operation) : bool
string
The operation to check.
bool
$filters : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\AndFilterBuilder
$isRootFilter : bool