‪TYPO3CMS  9.5
QueryObjectModelFactory.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
22 {
26  protected ‪$objectManager;
27 
32  {
33  $this->objectManager = ‪$objectManager;
34  }
35 
44  public function ‪selector($nodeTypeName, $selectorName = '')
45  {
46  if ($selectorName === '') {
47  $selectorName = $nodeTypeName;
48  }
49  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\Selector::class, $selectorName, $nodeTypeName);
50  }
51 
59  public function ‪statement($statement, array $boundVariables = [])
60  {
61  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\Statement::class, $statement, $boundVariables);
62  }
63 
73  public function ‪join(‪SourceInterface $left, ‪SourceInterface $right, $joinType, ‪JoinConditionInterface $joinCondition)
74  {
75  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\Join::class, $left, $right, $joinType, $joinCondition);
76  }
77 
88  public function ‪equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name)
89  {
90  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\EquiJoinCondition::class, $selector1Name, $property1Name, $selector2Name, $property2Name);
91  }
92 
101  public function ‪_and(‪ConstraintInterface $constraint1, ‪ConstraintInterface $constraint2)
102  {
103  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\LogicalAnd::class, $constraint1, $constraint2);
104  }
105 
114  public function ‪_or(‪ConstraintInterface $constraint1, ‪ConstraintInterface $constraint2)
115  {
116  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\LogicalOr::class, $constraint1, $constraint2);
117  }
118 
126  public function ‪not(‪ConstraintInterface $constraint)
127  {
128  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\LogicalNot::class, $constraint);
129  }
130 
140  public function ‪comparison(‪PropertyValueInterface $operand1, $operator, $operand2)
141  {
142  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\Comparison::class, $operand1, $operator, $operand2);
143  }
144 
153  public function ‪propertyValue($propertyName, $selectorName = '')
154  {
155  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\PropertyValue::class, $propertyName, $selectorName);
156  }
157 
165  public function ‪lowerCase(‪PropertyValueInterface $operand)
166  {
167  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\LowerCase::class, $operand);
168  }
169 
177  public function ‪upperCase(‪PropertyValueInterface $operand)
178  {
179  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\UpperCase::class, $operand);
180  }
181 
191  public function ‪ascending(‪DynamicOperandInterface $operand)
192  {
193  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\Ordering::class, $operand, \‪TYPO3\CMS\‪Extbase\Persistence\‪QueryInterface::ORDER_ASCENDING);
194  }
195 
205  public function ‪descending(‪DynamicOperandInterface $operand)
206  {
207  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\Ordering::class, $operand, \‪TYPO3\CMS\‪Extbase\Persistence\‪QueryInterface::ORDER_DESCENDING);
208  }
209 
217  public function ‪bindVariable($bindVariableName)
218  {
219  return $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Qom\BindVariableValue::class, $bindVariableName);
220  }
221 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\ascending
‪OrderingInterface ascending(DynamicOperandInterface $operand)
Definition: QueryObjectModelFactory.php:190
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\BindVariableValueInterface
Definition: BindVariableValueInterface.php:21
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\$objectManager
‪TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
Definition: QueryObjectModelFactory.php:25
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\selector
‪TYPO3 CMS Extbase Persistence Generic Qom SelectorInterface selector($nodeTypeName, $selectorName='')
Definition: QueryObjectModelFactory.php:43
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\propertyValue
‪TYPO3 CMS Extbase Persistence Generic Qom PropertyValueInterface propertyValue($propertyName, $selectorName='')
Definition: QueryObjectModelFactory.php:152
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrderingInterface
Definition: OrderingInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\_and
‪TYPO3 CMS Extbase Persistence Generic Qom AndInterface _and(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
Definition: QueryObjectModelFactory.php:100
‪TYPO3
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_DESCENDING
‪const ORDER_DESCENDING
Definition: QueryInterface.php:96
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory
Definition: QueryObjectModelFactory.php:22
‪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:87
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\JoinConditionInterface
Definition: JoinConditionInterface.php:21
‪TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Definition: ObjectManagerInterface.php:23
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\statement
‪TYPO3 CMS Extbase Persistence Generic Qom Statement statement($statement, array $boundVariables=[])
Definition: QueryObjectModelFactory.php:58
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\PropertyValueInterface
Definition: PropertyValueInterface.php:29
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING
‪const ORDER_ASCENDING
Definition: QueryInterface.php:95
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\injectObjectManager
‪injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
Definition: QueryObjectModelFactory.php:30
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\bindVariable
‪BindVariableValueInterface bindVariable($bindVariableName)
Definition: QueryObjectModelFactory.php:216
‪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:72
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\not
‪TYPO3 CMS Extbase Persistence Generic Qom NotInterface not(ConstraintInterface $constraint)
Definition: QueryObjectModelFactory.php:125
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom
Definition: AndInterface.php:2
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\descending
‪OrderingInterface descending(DynamicOperandInterface $operand)
Definition: QueryObjectModelFactory.php:204
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface
Definition: ConstraintInterface.php:24
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\DynamicOperandInterface
Definition: DynamicOperandInterface.php:21
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\comparison
‪TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface comparison(PropertyValueInterface $operand1, $operator, $operand2)
Definition: QueryObjectModelFactory.php:139
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\lowerCase
‪TYPO3 CMS Extbase Persistence Generic Qom LowerCaseInterface lowerCase(PropertyValueInterface $operand)
Definition: QueryObjectModelFactory.php:164
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\_or
‪TYPO3 CMS Extbase Persistence Generic Qom OrInterface _or(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
Definition: QueryObjectModelFactory.php:113
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\upperCase
‪TYPO3 CMS Extbase Persistence Generic Qom UpperCaseInterface upperCase(PropertyValueInterface $operand)
Definition: QueryObjectModelFactory.php:176