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 PropertyValueCondition

Condition checking that the value of a property is the same as a passed value.

DcGeneral\DataDefinition\Palette\Condition\Palette\AbstractWeightAwarePaletteCondition implements DcGeneral\DataDefinition\Palette\Condition\Palette\WeightAwarePaletteConditionInterface
Extended by DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
Namespace: DcGeneral\DataDefinition\Palette\Condition\Palette
Located at DataDefinition/Palette/Condition/Palette/PropertyValueCondition.php
Methods summary
public
# __construct( string $propertyName = '', mixed $propertyValue = null, boolean $strict = false, integer $weight = 1 )

Create a new instance.

Create a new instance.

Parameters

$propertyName
string
$propertyName The name of the property.
$propertyValue
mixed
$propertyValue The value of the property to match.
$strict
boolean
$strict Flag if the comparison shall be strict (type safe).
$weight
integer
$weight The weight of this condition to apply.
public DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
# setPropertyName( string $propertyName )

Set the property name.

Set the property name.

Parameters

$propertyName
string
$propertyName The property name.

Returns

DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
public string
# getPropertyName( )

Retrieve the property name.

Retrieve the property name.

Returns

string
public DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
# setPropertyValue( mixed $propertyValue )

Set the property value to match.

Set the property value to match.

Parameters

$propertyValue
mixed
$propertyValue The value.

Returns

DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
public mixed
# getPropertyValue( )

Retrieve the property value to match.

Retrieve the property value to match.

Returns

mixed
public DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
# setStrict( boolean $strict )

Set the flag if the comparison shall be strict (type safe).

Set the flag if the comparison shall be strict (type safe).

Parameters

$strict
boolean
$strict The flag.

Returns

DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyValueCondition
public boolean
# getStrict( )

Retrieve the flag if the comparison shall be strict (type safe).

Retrieve the flag if the comparison shall be strict (type safe).

Returns

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

Create a deep clone of the condition.

Create a deep clone of the condition.

Methods inherited from DcGeneral\DataDefinition\Palette\Condition\Palette\AbstractWeightAwarePaletteCondition
getWeight(), setWeight()
Properties summary
protected string $propertyName
#

The property name.

The property name.

protected mixed $propertyValue
#

The expected property value.

The expected property value.

protected boolean $strict
#

Use strict compare mode.

Use strict compare mode.

Properties inherited from DcGeneral\DataDefinition\Palette\Condition\Palette\AbstractWeightAwarePaletteCondition
$weight
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0