‪TYPO3CMS  10.4
TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 injectObjectManager (ObjectManagerInterface $objectManager)
 
TYPO3 CMS Extbase Persistence Generic Qom SelectorInterface selector ($nodeTypeName, $selectorName='')
 
TYPO3 CMS Extbase Persistence Generic Qom Statement statement ($statement, array $boundVariables=[])
 
TYPO3 CMS Extbase Persistence Generic Qom JoinInterface join (SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition)
 
TYPO3 CMS Extbase Persistence Generic Qom EquiJoinConditionInterface equiJoinCondition ($selector1Name, $property1Name, $selector2Name, $property2Name)
 
TYPO3 CMS Extbase Persistence Generic Qom AndInterface _and (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
TYPO3 CMS Extbase Persistence Generic Qom OrInterface _or (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
TYPO3 CMS Extbase Persistence Generic Qom NotInterface not (ConstraintInterface $constraint)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface comparison (PropertyValueInterface $operand1, $operator, $operand2)
 
TYPO3 CMS Extbase Persistence Generic Qom PropertyValueInterface propertyValue ($propertyName, $selectorName='')
 
TYPO3 CMS Extbase Persistence Generic Qom LowerCaseInterface lowerCase (PropertyValueInterface $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom UpperCaseInterface upperCase (PropertyValueInterface $operand)
 
OrderingInterface ascending (DynamicOperandInterface $operand)
 
OrderingInterface descending (DynamicOperandInterface $operand)
 
BindVariableValueInterface bindVariable ($bindVariableName)
 

Protected Attributes

TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 

Detailed Description

The Query Object Model Factory

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

Definition at line 26 of file QueryObjectModelFactory.php.

Member Function Documentation

◆ _and()

TYPO3 CMS Extbase Persistence Generic Qom AndInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::_and ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Performs a logical conjunction of two other constraints.

Parameters
ConstraintInterface$constraint1‪the first constraint; non-null
ConstraintInterface$constraint2‪the second constraint; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\AndInterface the And constraint; non-null
Exceptions

Definition at line 105 of file QueryObjectModelFactory.php.

◆ _or()

TYPO3 CMS Extbase Persistence Generic Qom OrInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::_or ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Performs a logical disjunction of two other constraints.

Parameters
ConstraintInterface$constraint1‪the first constraint; non-null
ConstraintInterface$constraint2‪the second constraint; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrInterface the Or constraint; non-null
Exceptions

Definition at line 118 of file QueryObjectModelFactory.php.

◆ ascending()

OrderingInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::ascending ( DynamicOperandInterface  $operand)

Orders by the value of the specified operand, in ascending order.

The query is invalid if $operand does not evaluate to a scalar value.

Parameters
DynamicOperandInterface$operand‪the operand by which to order; non-null
Returns
OrderingInterface the ordering
Exceptions

Definition at line 195 of file QueryObjectModelFactory.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ bindVariable()

BindVariableValueInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::bindVariable (   $bindVariableName)

Evaluates to the value of a bind variable.

Parameters
string$bindVariableName‪the bind variable name; non-null
Returns
BindVariableValueInterface the operand; non-null
Exceptions

Definition at line 221 of file QueryObjectModelFactory.php.

◆ comparison()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::comparison ( PropertyValueInterface  $operand1,
  $operator,
  $operand2 
)

Filters node-tuples based on the outcome of a binary operation.

Parameters
PropertyValueInterface$operand1‪the first operand; non-null
string$operator‪the operator; one of QueryObjectModelConstants.JCR_OPERATOR_*
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\StaticOperandInterface$operand2‪the second operand; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface the constraint; non-null
Exceptions

Definition at line 144 of file QueryObjectModelFactory.php.

◆ descending()

OrderingInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::descending ( DynamicOperandInterface  $operand)

Orders by the value of the specified operand, in descending order.

The query is invalid if $operand does not evaluate to a scalar value.

Parameters
DynamicOperandInterface$operand‪the operand by which to order; non-null
Returns
OrderingInterface the ordering
Exceptions

Definition at line 209 of file QueryObjectModelFactory.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_DESCENDING.

◆ equiJoinCondition()

TYPO3 CMS Extbase Persistence Generic Qom EquiJoinConditionInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::equiJoinCondition (   $selector1Name,
  $property1Name,
  $selector2Name,
  $property2Name 
)

Tests whether the value of a property in a first selector is equal to the value of a property in a second selector.

Parameters
string$selector1Name‪the name of the first selector; non-null
string$property1Name‪the property name in the first selector; non-null
string$selector2Name‪the name of the second selector; non-null
string$property2Name‪the property name in the second selector; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\EquiJoinConditionInterface the constraint; non-null
Exceptions

Definition at line 92 of file QueryObjectModelFactory.php.

◆ injectObjectManager()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::injectObjectManager ( ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 35 of file QueryObjectModelFactory.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\$objectManager.

◆ join()

TYPO3 CMS Extbase Persistence Generic Qom JoinInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::join ( SourceInterface  $left,
SourceInterface  $right,
  $joinType,
JoinConditionInterface  $joinCondition 
)

Performs a join between two node-tuple sources.

Parameters
SourceInterface$left‪the left node-tuple source; non-null
SourceInterface$right‪the right node-tuple source; non-null
string$joinType‪one of QueryObjectModelConstants.JCR_JOIN_TYPE_*
JoinConditionInterface$joinCondition
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\JoinInterface the join; non-null

Definition at line 77 of file QueryObjectModelFactory.php.

◆ lowerCase()

TYPO3 CMS Extbase Persistence Generic Qom LowerCaseInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::lowerCase ( PropertyValueInterface  $operand)

Evaluates to the lower-case string value (or values, if multi-valued) of an operand.

Parameters
PropertyValueInterface$operand‪the operand whose value is converted to a lower-case string; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\LowerCaseInterface the operand; non-null
Exceptions

Definition at line 169 of file QueryObjectModelFactory.php.

◆ not()

TYPO3 CMS Extbase Persistence Generic Qom NotInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::not ( ConstraintInterface  $constraint)

Performs a logical negation of another constraint.

Parameters
ConstraintInterface$constraint‪the constraint to be negated; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\NotInterface the Not constraint; non-null
Exceptions

Definition at line 130 of file QueryObjectModelFactory.php.

◆ propertyValue()

TYPO3 CMS Extbase Persistence Generic Qom PropertyValueInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::propertyValue (   $propertyName,
  $selectorName = '' 
)

Evaluates to the value (or values, if multi-valued) of a property in the specified or default selector.

Parameters
string$propertyName‪the property name; non-null
string$selectorName‪the selector name; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\PropertyValueInterface the operand; non-null
Exceptions

Definition at line 157 of file QueryObjectModelFactory.php.

◆ selector()

TYPO3 CMS Extbase Persistence Generic Qom SelectorInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::selector (   $nodeTypeName,
  $selectorName = '' 
)

Selects a subset of the nodes in the repository based on node type.

Parameters
string$nodeTypeName‪the name of the required node type; non-null
string$selectorName‪the selector name; optional
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\SelectorInterface the selector
Exceptions

Definition at line 48 of file QueryObjectModelFactory.php.

◆ statement()

TYPO3 CMS Extbase Persistence Generic Qom Statement TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::statement (   $statement,
array  $boundVariables = [] 
)

Sets a statement as constraint. This is not part of the JCR 2.0 Specification!

Parameters
string$statement‪The statement
array$boundVariables‪An array of variables to bind to the statement
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement

Definition at line 63 of file QueryObjectModelFactory.php.

◆ upperCase()

TYPO3 CMS Extbase Persistence Generic Qom UpperCaseInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::upperCase ( PropertyValueInterface  $operand)

Evaluates to the upper-case string value (or values, if multi-valued) of an operand.

Parameters
PropertyValueInterface$operand‪the operand whose value is converted to an upper-case string; non-null
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\UpperCaseInterface the operand; non-null
Exceptions

Definition at line 181 of file QueryObjectModelFactory.php.

Member Data Documentation

◆ $objectManager

TYPO3 CMS Extbase Object ObjectManagerInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::$objectManager
protected