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 BooleanCondition

Condition for specifying an explicit boolean value (Useful for determining if a property shall be editable i.e.).

DcGeneral\DataDefinition\Palette\Condition\Property\BooleanCondition implements DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface
Namespace: DcGeneral\DataDefinition\Palette\Condition\Property
Located at DataDefinition/Palette/Condition/Property/BooleanCondition.php
Methods summary
public
# __construct( boolean $value )

Create a new instance.

Create a new instance.

Parameters

$value
boolean
$value The value to use.
public DcGeneral\DataDefinition\Palette\Condition\Property\BooleanCondition
# setValue( boolean $value )

Set the value.

Set the value.

Parameters

$value
boolean
$value The value to use.

Returns

DcGeneral\DataDefinition\Palette\Condition\Property\BooleanCondition
public boolean
# getValue( )

Retrieve the value.

Retrieve the value.

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 boolean $value
#

The boolean value to return.

The boolean value to return.

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