‪TYPO3CMS  11.5
QueryObjectModelFactory.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
27 {
36  public function ‪selector($nodeTypeName, $selectorName = '')
37  {
38  if ($selectorName === '') {
39  $selectorName = $nodeTypeName;
40  }
41  return GeneralUtility::makeInstance(Selector::class, $selectorName, $nodeTypeName);
42  }
43 
51  public function ‪statement($statement, array $boundVariables = [])
52  {
53  return GeneralUtility::makeInstance(Statement::class, $statement, $boundVariables);
54  }
55 
65  public function ‪join(‪SourceInterface $left, ‪SourceInterface $right, $joinType, ‪JoinConditionInterface $joinCondition)
66  {
67  return GeneralUtility::makeInstance(Join::class, $left, $right, $joinType, $joinCondition);
68  }
69 
80  public function ‪equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name)
81  {
82  return GeneralUtility::makeInstance(EquiJoinCondition::class, $selector1Name, $property1Name, $selector2Name, $property2Name);
83  }
84 
93  public function ‪_and(‪ConstraintInterface $constraint1, ‪ConstraintInterface $constraint2)
94  {
95  return GeneralUtility::makeInstance(LogicalAnd::class, $constraint1, $constraint2);
96  }
97 
106  public function ‪_or(‪ConstraintInterface $constraint1, ‪ConstraintInterface $constraint2)
107  {
108  return GeneralUtility::makeInstance(LogicalOr::class, $constraint1, $constraint2);
109  }
110 
118  public function ‪not(‪ConstraintInterface $constraint)
119  {
120  return GeneralUtility::makeInstance(LogicalNot::class, $constraint);
121  }
122 
132  public function ‪comparison(‪PropertyValueInterface $operand1, int $operator, $operand2)
133  {
134  return GeneralUtility::makeInstance(Comparison::class, $operand1, $operator, $operand2);
135  }
136 
145  public function ‪propertyValue($propertyName, $selectorName = '')
146  {
147  return GeneralUtility::makeInstance(PropertyValue::class, $propertyName, $selectorName);
148  }
149 
157  public function ‪lowerCase(‪PropertyValueInterface $operand)
158  {
159  return GeneralUtility::makeInstance(LowerCase::class, $operand);
160  }
161 
169  public function ‪upperCase(‪PropertyValueInterface $operand)
170  {
171  return GeneralUtility::makeInstance(UpperCase::class, $operand);
172  }
173 
183  public function ‪ascending(‪DynamicOperandInterface $operand)
184  {
185  return GeneralUtility::makeInstance(Ordering::class, $operand, ‪QueryInterface::ORDER_ASCENDING);
186  }
187 
197  public function ‪descending(‪DynamicOperandInterface $operand)
198  {
199  return GeneralUtility::makeInstance(Ordering::class, $operand, ‪QueryInterface::ORDER_DESCENDING);
200  }
201 
209  public function ‪bindVariable($bindVariableName)
210  {
211  return GeneralUtility::makeInstance(BindVariableValue::class, $bindVariableName);
212  }
213 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\ascending
‪OrderingInterface ascending(DynamicOperandInterface $operand)
Definition: QueryObjectModelFactory.php:183
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\BindVariableValueInterface
Definition: BindVariableValueInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\selector
‪TYPO3 CMS Extbase Persistence Generic Qom SelectorInterface selector($nodeTypeName, $selectorName='')
Definition: QueryObjectModelFactory.php:36
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.php:29
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\propertyValue
‪TYPO3 CMS Extbase Persistence Generic Qom PropertyValueInterface propertyValue($propertyName, $selectorName='')
Definition: QueryObjectModelFactory.php:145
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrderingInterface
Definition: OrderingInterface.php:23
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\_and
‪TYPO3 CMS Extbase Persistence Generic Qom AndInterface _and(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
Definition: QueryObjectModelFactory.php:93
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_DESCENDING
‪const ORDER_DESCENDING
Definition: QueryInterface.php:99
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory
Definition: QueryObjectModelFactory.php:27
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface
Definition: SourceInterface.php:21
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\equiJoinCondition
‪TYPO3 CMS Extbase Persistence Generic Qom EquiJoinConditionInterface equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name)
Definition: QueryObjectModelFactory.php:80
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\JoinConditionInterface
Definition: JoinConditionInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\statement
‪TYPO3 CMS Extbase Persistence Generic Qom Statement statement($statement, array $boundVariables=[])
Definition: QueryObjectModelFactory.php:51
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\PropertyValueInterface
Definition: PropertyValueInterface.php:30
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING
‪const ORDER_ASCENDING
Definition: QueryInterface.php:98
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\bindVariable
‪BindVariableValueInterface bindVariable($bindVariableName)
Definition: QueryObjectModelFactory.php:209
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\join
‪TYPO3 CMS Extbase Persistence Generic Qom JoinInterface join(SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition)
Definition: QueryObjectModelFactory.php:65
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\comparison
‪TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface comparison(PropertyValueInterface $operand1, int $operator, $operand2)
Definition: QueryObjectModelFactory.php:132
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\not
‪TYPO3 CMS Extbase Persistence Generic Qom NotInterface not(ConstraintInterface $constraint)
Definition: QueryObjectModelFactory.php:118
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom
Definition: AndInterface.php:16
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\descending
‪OrderingInterface descending(DynamicOperandInterface $operand)
Definition: QueryObjectModelFactory.php:197
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface
Definition: ConstraintInterface.php:25
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\DynamicOperandInterface
Definition: DynamicOperandInterface.php:21
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:50
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\lowerCase
‪TYPO3 CMS Extbase Persistence Generic Qom LowerCaseInterface lowerCase(PropertyValueInterface $operand)
Definition: QueryObjectModelFactory.php:157
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\_or
‪TYPO3 CMS Extbase Persistence Generic Qom OrInterface _or(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
Definition: QueryObjectModelFactory.php:106
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\upperCase
‪TYPO3 CMS Extbase Persistence Generic Qom UpperCaseInterface upperCase(PropertyValueInterface $operand)
Definition: QueryObjectModelFactory.php:169