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

  • AbstractCondition
  • ParentChildCondition
  • RootCondition

Interfaces

  • ParentChildConditionInterface
  • RootConditionInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class AbstractCondition

This class is an abstract base for defining model relationship conditions.

It implements a basic condition check.

Direct known subclasses

DcGeneral\DataDefinition\ModelRelationship\ParentChildCondition, DcGeneral\DataDefinition\ModelRelationship\RootCondition
Abstract
Namespace: DcGeneral\DataDefinition\ModelRelationship
Package: DcGeneral\DataDefinition\ModelRelationship
Located at DataDefinition/ModelRelationship/AbstractCondition.php
Methods summary
protected static boolean
# checkAndFilter( DcGeneral\Data\ModelInterface $model, array $filter )

Check if an AND condition filter matches.

Check if an AND condition filter matches.

Parameters

$model
DcGeneral\Data\ModelInterface
$model The model to check the condition against.
$filter
array
$filter The filter rules to be applied.

Returns

boolean
protected static boolean
# checkOrFilter( DcGeneral\Data\ModelInterface $model, array $filter )

Check if an AND condition filter matches.

Check if an AND condition filter matches.

Parameters

$model
DcGeneral\Data\ModelInterface
$model The model to check the condition against.
$filter
array
$filter The filter rules to be applied.

Returns

boolean
public static boolean
# checkCondition( DcGeneral\Data\ModelInterface $objParentModel, array $arrFilter )

Check if the passed filter rules apply to the given model.

Check if the passed filter rules apply to the given model.

Parameters

$objParentModel
DcGeneral\Data\ModelInterface
$objParentModel The model to check the condition against.
$arrFilter
array
$arrFilter The condition filter to be applied.

Returns

boolean

Throws

DcGeneral\Exception\DcGeneralRuntimeException
When an unknown filter operation is encountered.
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0