Handy helper class to generate and manipulate filter arrays.

This class is intended to be only used as base class of other filter builders.

 Methods

Ensure that the given property also equals the given value.

andPropertyEquals(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyEqualsFilterBuilder

Parameters

$property

string

The property name.

$value

mixed

The property value.

Returns

Ensure that the given property also is greater than the given value.

andPropertyGreaterThan(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyGreaterThanFilterBuilder

Parameters

$property

string

The property name.

$value

mixed

The property value.

Returns

Ensure that the given property also is less than the given value.

andPropertyLessThan(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyLessThanFilterBuilder

Parameters

$property

string

The property name.

$value

mixed

The property value.

Returns

Ensure that the given property also is less than the given value.

andPropertyValueIn(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyValueInFilterBuilder

Parameters

$property

string

The property name.

$value

mixed

The property value.

Returns

Ensure that the given property also is less than the given value.

andPropertyValueLike(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyValueInFilterBuilder

Parameters

$property

string

The property name.

$value

mixed

The property value.

Returns

Ensure that the given property also equals the given remote property.

andRemotePropertyEquals(string $property, string $remoteProperty, bool $remoteIsValue) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyEqualsFilterBuilder

Parameters

$property

string

The name of the property.

$remoteProperty

string

The name of the remote property.

$remoteIsValue

bool

True if the passed remote value is a value, false if it is a property name.

Returns

Ensure that the given property also is greater than the given remote property.

andRemotePropertyGreaterThan(string $property, string $remoteProperty, bool $remoteIsValue) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyGreaterThanFilterBuilder

Parameters

$property

string

The name of the property.

$remoteProperty

string

The name of the remote property.

$remoteIsValue

bool

True if the passed remote value is a value, false if it is a property name.

Returns

Ensure that the given property also is less than the given remote property.

andRemotePropertyLessThan(string $property, string $remoteProperty, bool $remoteIsValue) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyLessThanFilterBuilder

Parameters

$property

string

The name of the property.

$remoteProperty

string

The name of the remote property.

$remoteIsValue

bool

True if the passed remote value is a value, false if it is a property name.

Returns

Serialize the filter into an array.

get() : array

Returns

array

Get all the filter array for all filters from the current filter builder.

getAllAsArray() : array

Returns

array

Ensure that the given property also equals the given value.

orPropertyEquals(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\PropertyEqualsFilterBuilder

Parameters

$property

string

The property name.

$value

mixed

The property value.

Returns

Encapsulate the given filter with AND and return it.

andEncapsulate(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder $filter) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder

Encapsulate the given filter with AND and return it.

orEncapsulate(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder $filter) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseFilterBuilder

 Properties