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 PropertyValueCondition

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

DcGeneral\DataDefinition\Palette\Condition\Property\PropertyValueCondition implements DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface
Namespace: DcGeneral\DataDefinition\Palette\Condition\Property
Located at DataDefinition/Palette/Condition/Property/PropertyValueCondition.php
Methods summary
public
# __construct( string $propertyName = '', mixed $propertyValue = null, boolean $strict = false )

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).
public DcGeneral\DataDefinition\Palette\Condition\Property\PropertyValueCondition
# setPropertyName( string $propertyName )

Set the property name.

Set the property name.

Parameters

$propertyName
string
$propertyName The property name.

Returns

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

Retrieve the property name.

Retrieve the property name.

Returns

string
public DcGeneral\DataDefinition\Palette\Condition\Property\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\Property\PropertyValueCondition
public mixed
# getPropertyValue( )

Retrieve the property value to match.

Retrieve the property value to match.

Returns

mixed
public DcGeneral\DataDefinition\Palette\Condition\Property\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\Property\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
# 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

Implementation of

DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface::match()
public
# __clone( )

Create a deep clone of the condition.

Create a deep clone of the condition.

Implementation of

DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface::__clone()
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.

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