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

Interface PaletteConditionInterface

A condition define when a palette is used or not.

DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionInterface implements DcGeneral\DataDefinition\ConditionInterface

Direct known implementers

DcGeneral\DataDefinition\Palette\Condition\Palette\DefaultPaletteCondition, DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionChain, DcGeneral\DataDefinition\Palette\Condition\Palette\WeightAwarePaletteConditionInterface

Indirect known implementers

DcGeneral\DataDefinition\Palette\Condition\Palette\AbstractWeightAwarePaletteCondition, DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyFalseCondition, DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyTrueCondition, DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
Namespace: DcGeneral\DataDefinition\Palette\Condition\Palette
Located at DataDefinition/Palette/Condition/Palette/PaletteConditionInterface.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.

If a value is present in the input parameter, that one overrides any existing value in the model.

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
public
# __clone( )

Create a deep clone of the condition.

Create a deep clone of the condition.

contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0