Handy helper class to generate and manipulate AND filter arrays.
__construct(string $property, mixed $value, bool $isRemote, bool $isRemoteProp)
stringThe property name to be compared.
mixedThe value to be compared against.
boolFlag determining if the passed value is a remote property name (only valid if filter is for parent child relationship and not for root elements).
boolFlag determining if the passed value is a property or literal value (only valid when $isRemote is true).
fromArray(array $array) : mixed
arrayThe initialization array.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid array has been passed. |
|---|
mixedget()
getProperty() : string
stringgetValue() : mixed
mixedisRemote() : boolean
booleanisRemoteProperty() : boolean
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the filter is not flagged as remote. |
|---|
booleansetIsRemote(boolean $isRemote) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
booleanThe new flag.
setIsRemoteProperty(bool $isRemoteProp) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
boolTrue 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
stringThe property name.
setValue(mixed $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\FilterBuilder\BaseComparingFilterBuilder
mixedThe value.
$isRemote : bool
$isRemoteProp : bool
$operation : string
$property : string
$remoteProperty : string
$value : mixed