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

  • AbstractWeightAwarePaletteCondition
  • DefaultPaletteCondition
  • PaletteConditionChain
  • PropertyFalseCondition
  • PropertyTrueCondition
  • PropertyValueCondition

Interfaces

  • PaletteConditionInterface
  • WeightAwarePaletteConditionInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class PaletteConditionChain

A chain of palette conditions.

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

Calculate how "strong" (aka "count of matches") this condition match the model and input parameters.

Calculate how "strong" (aka "count of matches") this condition match the model and input parameters.

Parameters

$model
DcGeneral\Data\ModelInterface|null
$model If given, selectors will be evaluated depending on the model.
$input
DcGeneral\Data\PropertyValueBag
$input If given, selectors will be evaluated depending on the input data.

Returns

boolean

Throws

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

Implementation of

DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionInterface::getMatchCount()
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