TYPO3 CMS  TYPO3_6-2
QueryObjectModelFactory.php
Go to the documentation of this file.
1 <?php
3 
20 
25  protected $objectManager;
26 
35  public function selector($nodeTypeName, $selectorName = '') {
36  if ($selectorName === '') {
37  $selectorName = $nodeTypeName;
38  }
39  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\Selector', $selectorName, $nodeTypeName);
40  }
41 
49  public function statement($statement, array $boundVariables = array()) {
50  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\Statement', $statement, $boundVariables);
51  }
52 
62  public function join(SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition) {
63  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\Join', $left, $right, $joinType, $joinCondition);
64  }
65 
76  public function equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name) {
77  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\EquiJoinCondition', $selector1Name, $property1Name, $selector2Name, $property2Name);
78  }
79 
88  public function _and(ConstraintInterface $constraint1, ConstraintInterface $constraint2) {
89  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\LogicalAnd', $constraint1, $constraint2);
90  }
91 
100  public function _or(ConstraintInterface $constraint1, ConstraintInterface $constraint2) {
101  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\LogicalOr', $constraint1, $constraint2);
102  }
103 
111  public function not(ConstraintInterface $constraint) {
112  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\LogicalNot', $constraint);
113  }
114 
124  public function comparison(PropertyValueInterface $operand1, $operator, $operand2) {
125  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\Comparison', $operand1, $operator, $operand2);
126  }
127 
136  public function propertyValue($propertyName, $selectorName = '') {
137  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\PropertyValue', $propertyName, $selectorName);
138  }
139 
147  public function lowerCase(PropertyValueInterface $operand) {
148  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\LowerCase', $operand);
149  }
150 
158  public function upperCase(PropertyValueInterface $operand) {
159  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\UpperCase', $operand);
160  }
161 
171  public function ascending(DynamicOperandInterface $operand) {
172  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\Ordering', $operand, \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING);
173  }
174 
184  public function descending(DynamicOperandInterface $operand) {
185  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\Ordering', $operand, \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING);
186  }
187 
195  public function bindVariable($bindVariableName) {
196  return $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Qom\\BindVariableValue', $bindVariableName);
197  }
198 }
equiJoinCondition($selector1Name, $property1Name, $selector2Name, $property2Name)
comparison(PropertyValueInterface $operand1, $operator, $operand2)
_and(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
_or(ConstraintInterface $constraint1, ConstraintInterface $constraint2)
join(SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition)