‪TYPO3CMS  10.4
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 {
31  protected ‪$objectManager;
32 
37  {
38  $this->objectManager = ‪$objectManager;
39  }
40 
49  public function ‪selector($nodeTypeName, $selectorName = '')
50  {
51  if ($selectorName === '') {
52  $selectorName = $nodeTypeName;
53  }
54  return $this->objectManager->get(Selector::class, $selectorName, $nodeTypeName);
55  }
56 
64  public function ‪statement($statement, array $boundVariables = [])
65  {
66  return $this->objectManager->get(Statement::class, $statement, $boundVariables);
67  }
68 
78  public function ‪join(‪SourceInterface $left, ‪SourceInterface $right, $joinType, ‪JoinConditionInterface $joinCondition)
79  {
80  return $this->objectManager->get(Join::class, $left, $right, $joinType, $joinCondition);
81  }
82 
93  public function ‪equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name)
94  {
95  return $this->objectManager->get(EquiJoinCondition::class, $selector1Name, $property1Name, $selector2Name, $property2Name);
96  }
97 
106  public function ‪_and(‪ConstraintInterface $constraint1, ‪ConstraintInterface $constraint2)
107  {
108  return $this->objectManager->get(LogicalAnd::class, $constraint1, $constraint2);
109  }
110 
119  public function ‪_or(‪ConstraintInterface $constraint1, ‪ConstraintInterface $constraint2)
120  {
121  return $this->objectManager->get(LogicalOr::class, $constraint1, $constraint2);
122  }
123 
131  public function ‪not(‪ConstraintInterface $constraint)
132  {
133  return $this->objectManager->get(LogicalNot::class, $constraint);
134  }
135 
145  public function ‪comparison(‪PropertyValueInterface $operand1, $operator, $operand2)
146  {
147  return $this->objectManager->get(Comparison::class, $operand1, $operator, $operand2);
148  }
149 
158  public function ‪propertyValue($propertyName, $selectorName = '')
159  {
160  return $this->objectManager->get(PropertyValue::class, $propertyName, $selectorName);
161  }
162 
170  public function ‪lowerCase(‪PropertyValueInterface $operand)
171  {
172  return $this->objectManager->get(LowerCase::class, $operand);
173  }
174 
182  public function ‪upperCase(‪PropertyValueInterface $operand)
183  {
184  return $this->objectManager->get(UpperCase::class, $operand);
185  }
186 
196  public function ‪ascending(‪DynamicOperandInterface $operand)
197  {
198  return $this->objectManager->get(Ordering::class, $operand, ‪QueryInterface::ORDER_ASCENDING);
199  }
200 
210  public function ‪descending(‪DynamicOperandInterface $operand)
211  {
212  return $this->objectManager->get(Ordering::class, $operand, ‪QueryInterface::ORDER_DESCENDING);
213  }
214 
222  public function ‪bindVariable($bindVariableName)
223  {
224  return $this->objectManager->get(BindVariableValue::class, $bindVariableName);
225  }
226 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\ascending
‪OrderingInterface ascending(DynamicOperandInterface $operand)
Definition: QueryObjectModelFactory.php:195
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\BindVariableValueInterface
Definition: BindVariableValueInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\$objectManager
‪TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
Definition: QueryObjectModelFactory.php:30
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\selector
‪TYPO3 CMS Extbase Persistence Generic Qom SelectorInterface selector($nodeTypeName, $selectorName='')
Definition: QueryObjectModelFactory.php:48
‪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:157
‪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:105
‪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:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\equiJoinCondition
‪TYPO3 CMS Extbase Persistence Generic Qom EquiJoinConditionInterface equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name)
Definition: QueryObjectModelFactory.php:92
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\JoinConditionInterface
Definition: JoinConditionInterface.php:22
‪TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Definition: ObjectManagerInterface.php:26
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\statement
‪TYPO3 CMS Extbase Persistence Generic Qom Statement statement($statement, array $boundVariables=[])
Definition: QueryObjectModelFactory.php:63
‪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:221
‪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:77
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\not
‪TYPO3 CMS Extbase Persistence Generic Qom NotInterface not(ConstraintInterface $constraint)
Definition: QueryObjectModelFactory.php:130
‪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:209
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:23
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface
Definition: ConstraintInterface.php:25
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\DynamicOperandInterface
Definition: DynamicOperandInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\comparison
‪TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface comparison(PropertyValueInterface $operand1, $operator, $operand2)
Definition: QueryObjectModelFactory.php:144
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\injectObjectManager
‪injectObjectManager(ObjectManagerInterface $objectManager)
Definition: QueryObjectModelFactory.php:35
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\lowerCase
‪TYPO3 CMS Extbase Persistence Generic Qom LowerCaseInterface lowerCase(PropertyValueInterface $operand)
Definition: QueryObjectModelFactory.php:169
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\_or
‪TYPO3 CMS Extbase Persistence Generic Qom OrInterface _or(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
Definition: QueryObjectModelFactory.php:118
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\upperCase
‪TYPO3 CMS Extbase Persistence Generic Qom UpperCaseInterface upperCase(PropertyValueInterface $operand)
Definition: QueryObjectModelFactory.php:181