Handy helper class to generate and manipulate AND filter arrays.
__construct(string $property, mixed $value, bool $isRemote, bool $isRemoteProp)
string
The property name to be compared.
mixed
The value to be compared against.
bool
Flag determining if the passed value is a remote property name (only valid if filter is for parent child relationship and not for root elements).
bool
Flag determining if the passed value is a property or literal value (only valid when $isRemote is true).
fromArray(array $array) : mixed
array
The initialization array.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid array has been passed. |
---|
mixed
get()
getProperty() : string
string
getValue() : mixed
mixed
isRemote() : boolean
boolean
isRemoteProperty() : boolean
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the filter is not flagged as remote. |
---|
boolean
setIsRemote(boolean $isRemote) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
boolean
The new flag.
setIsRemoteProperty(bool $isRemoteProp) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
bool
True when the value is to be credited as property name, false if it is a literal value.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the filter is not flagged as remote. |
---|
setProperty(string $property) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
string
The property name.
setValue(mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
mixed
The value.
$isRemote : bool
$isRemoteProp : bool
$operation : string
$property : string
$remoteProperty : string
$value : mixed