Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • BooleanCondition
  • NotCondition
  • PropertyConditionChain
  • PropertyFalseCondition
  • PropertyTrueCondition
  • PropertyValueCondition

Interfaces

  • PropertyConditionInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class PropertyConditionChain

A chain of property conditions.

DcGeneral\DataDefinition\AbstractConditionChain implements DcGeneral\DataDefinition\ConditionChainInterface
Extended by DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionChain implements DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface
Namespace: DcGeneral\DataDefinition\Palette\Condition\Property
Located at DataDefinition/Palette/Condition/Property/PropertyConditionChain.php
Methods summary
public boolean
# match( DcGeneral\Data\ModelInterface $model = null, DcGeneral\Data\PropertyValueBag $input = null )

Check if the condition match.

Check if the condition match.

Parameters

$model
DcGeneral\Data\ModelInterface|null
$model If given, subpalettes will be evaluated depending on the model. If no model is given, all properties will be returned, including subpalette properties.
$input
DcGeneral\Data\PropertyValueBag
$input If given, subpalettes will be evaluated depending on the input data. If no model and no input data is given, all properties will be returned, including subpalette properties.

Returns

boolean

Throws

DcGeneral\Exception\DcGeneralRuntimeException
When an condition that does not implement PropertyConditionInterface is encountered.

Implementation of

DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface::match()
Methods inherited from DcGeneral\DataDefinition\AbstractConditionChain
__clone(), __construct(), addCondition(), addConditions(), clearConditions(), getConditions(), getConjunction(), removeCondition(), setConditions(), setConjunction()
Constants inherited from DcGeneral\DataDefinition\ConditionChainInterface
AND_CONJUNCTION, OR_CONJUNCTION
Properties inherited from DcGeneral\DataDefinition\AbstractConditionChain
$conditions, $conjunction
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0