‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr:
TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface

Public Member Functions

 __construct (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
 collectBoundVariableNames (&$boundVariables)
 
ConstraintInterface getConstraint1 ()
 
ConstraintInterface getConstraint2 ()
 

Protected Attributes

ConstraintInterface $constraint1
 
ConstraintInterface $constraint2
 

Detailed Description

Performs a logical disjunction of two other constraints.

To satisfy the Or constraint, the node-tuple must either: satisfy constraint1 but not constraint2, or satisfy constraint2 but not constraint1, or satisfy both constraint1 and constraint2.

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 30 of file LogicalOr.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr::__construct ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Member Function Documentation

◆ collectBoundVariableNames()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr::collectBoundVariableNames ( $boundVariables)

Fills an array with the names of all bound variables in the constraints

Parameters
array$boundVariables

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface.

Definition at line 51 of file LogicalOr.php.

◆ getConstraint1()

ConstraintInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr::getConstraint1 ( )

Gets the first constraint.

Returns
ConstraintInterface the constraint; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrInterface.

Definition at line 62 of file LogicalOr.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr\$constraint1.

◆ getConstraint2()

ConstraintInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr::getConstraint2 ( )

Gets the second constraint.

Returns
ConstraintInterface the constraint; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrInterface.

Definition at line 72 of file LogicalOr.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr\$constraint2.

Member Data Documentation

◆ $constraint1

ConstraintInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr::$constraint1
protected

◆ $constraint2

ConstraintInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalOr::$constraint2
protected