This class is an abstract base for defining model relationship conditions.

It implements a basic condition check.

 Methods

Check if the passed filter rules apply to the given model.

checkCondition(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objParentModel, array $arrFilter) : bool
Static

Parameters

$objParentModel

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The model to check the condition against.

$arrFilter

array

The condition filter to be applied.

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When an unknown filter operation is encountered.

Returns

bool

Check if an AND condition filter matches.

checkAndFilter(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, array $filter) : bool
Static

Parameters

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The model to check the condition against.

$filter

array

The filter rules to be applied.

Returns

bool

Check if an AND condition filter matches.

checkOrFilter(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, array $filter) : bool
Static

Parameters

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The model to check the condition against.

$filter

array

The filter rules to be applied.

Returns

bool

Extract a condition value depending if it is a remote value or property.

getConditionValue(array $condition, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parent) : mixed
Static

Parameters

$condition

array

The condition array.

Returns

mixed