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 PropertyTrueCondition

Condition checking that the value of a property is true.

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

Create a new instance.

Create a new instance.

Parameters

$propertyName
string
$propertyName The name of the property.
$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\PropertyTrueCondition
# setPropertyName( string $propertyName )

Set the property name.

Set the property name.

Parameters

$propertyName
string
$propertyName The property name.

Returns

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

Retrieve the property name.

Retrieve the property name.

Returns

string
public DcGeneral\DataDefinition\Palette\Condition\Palette\PropertyTrueCondition
# 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\PropertyTrueCondition
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 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