Handy helper class to generate and manipulate filter arrays containing children.
__clone()
__construct(array $children)
array
The initial children to absorb.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When invalid children have been passed. |
---|
add(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder $filter) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\FilterBuilderWithChildren
\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
The filter builder to add.
append(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder|\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\FilterBuilderWithChildren $filters) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\FilterBuilderWithChildren
current() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the current position is invalid. |
---|
first() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
fromArray(array $array, \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder $builder) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
array
The initialization array.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder
The builder instance.
get()
indexOf(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder $filter) : int
\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
The filter builder to search.
int
key() : mixed
mixed
scalar on success, or null on failure.next() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
offsetExists(int $offset) : boolean
int
An offset to check for.
boolean
true on success or false on failure.offsetGet(int $offset) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
int
The offset to retrieve.
offsetSet(mixed $offset, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\FilterBuilderWithChildren
mixed
The offset to assign the value to.
mixed
The value to set.
offsetUnset(int $offset) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\FilterBuilderWithChildren
int
The offset to unset.
remove(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder $filter) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\FilterBuilderWithChildren
\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
The filter builder to remove.
rewind() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder
setBuilder($builder)
valid() : boolean
boolean
Returns true on success or false on failure.$children : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder[]
$index : int
$operation : string