A condition define when a property is visible or editable and when not.

 Methods

Add a condition to this chain.

addCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface

Add multiple conditions to this chain.

addConditions(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface[] $conditions) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface

Retrieve the conjunction.

getConjunction() : string

Returns

string

Remove a condition from this chain.

removeCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface

Set the conditions in this chain.

setConditions(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface[] $conditions) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface

Set the conjunction.

setConjunction(string $conjunction) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface

Parameters

$conjunction

string

The conjunction.

Returns

 Constants

 

All conditions must match.

AND_CONJUNCTION 
 

Only one condition must match.

OR_CONJUNCTION