‪TYPO3CMS  ‪main
QueryInterface.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 
24 
30 {
34  public const ‪OPERATOR_EQUAL_TO = 1;
35 
39  public const ‪OPERATOR_EQUAL_TO_NULL = 101;
40 
44  public const ‪OPERATOR_NOT_EQUAL_TO = 2;
45 
49  public const ‪OPERATOR_NOT_EQUAL_TO_NULL = 202;
50 
54  public const ‪OPERATOR_LESS_THAN = 3;
55 
60 
64  public const ‪OPERATOR_GREATER_THAN = 5;
65 
70 
74  public const ‪OPERATOR_LIKE = 7;
75 
79  public const ‪OPERATOR_CONTAINS = 8;
80 
84  public const ‪OPERATOR_IN = 9;
85 
89  public const ‪OPERATOR_IS_NULL = 10;
90 
94  public const ‪OPERATOR_IS_EMPTY = 11;
95 
99  public const ‪ORDER_ASCENDING = 'ASC';
100  public const ‪ORDER_DESCENDING = 'DESC';
101 
107  public function ‪getSource();
108 
116  public function ‪execute($returnRawQueryResult = false);
117 
129  public function ‪setOrderings(array $orderings);
130 
139  public function ‪setLimit($limit);
140 
149  public function ‪setOffset($offset);
150 
159  public function ‪matching($constraint);
160 
165  public function ‪logicalAnd(‪ConstraintInterface ...$constraints): ‪AndInterface;
166 
171  public function ‪logicalOr(‪ConstraintInterface ...$constraints): ‪OrInterface;
172 
179  public function ‪logicalNot(‪ConstraintInterface $constraint);
180 
193  public function ‪equals($propertyName, $operand, $caseSensitive = true);
194 
205  public function ‪like($propertyName, $operand);
206 
218  public function ‪contains($propertyName, $operand);
219 
229  public function ‪in($propertyName, $operand);
230 
239  public function ‪lessThan($propertyName, $operand);
240 
249  public function ‪lessThanOrEqual($propertyName, $operand);
250 
259  public function ‪greaterThan($propertyName, $operand);
260 
269  public function ‪greaterThanOrEqual($propertyName, $operand);
270 
275  public function ‪setType(string $type): void;
276 
283  public function ‪getType();
284 
289  public function ‪setQuerySettings(‪QuerySettingsInterface $querySettings);
290 
296  public function ‪getQuerySettings();
297 
303  public function ‪count();
304 
314  public function ‪getOrderings();
315 
321  public function ‪getLimit();
322 
328  public function ‪getOffset();
329 
335  public function ‪getConstraint();
336 
340  public function ‪setSource(‪SourceInterface $source);
341 
347  public function ‪getStatement();
348 }
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getConstraint
‪ConstraintInterface null getConstraint()
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_LIKE
‪const OPERATOR_LIKE
Definition: QueryInterface.php:74
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_GREATER_THAN_OR_EQUAL_TO
‪const OPERATOR_GREATER_THAN_OR_EQUAL_TO
Definition: QueryInterface.php:69
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getLimit
‪int getLimit()
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getOffset
‪int getOffset()
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_NOT_EQUAL_TO_NULL
‪const OPERATOR_NOT_EQUAL_TO_NULL
Definition: QueryInterface.php:49
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.php:30
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\equals
‪TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface equals($propertyName, $operand, $caseSensitive=true)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\logicalAnd
‪logicalAnd(ConstraintInterface ... $constraints)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_GREATER_THAN
‪const OPERATOR_GREATER_THAN
Definition: QueryInterface.php:64
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_DESCENDING
‪const ORDER_DESCENDING
Definition: QueryInterface.php:100
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\setOrderings
‪TYPO3 CMS Extbase Persistence QueryInterface setOrderings(array $orderings)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\logicalOr
‪logicalOr(ConstraintInterface ... $constraints)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_IN
‪const OPERATOR_IN
Definition: QueryInterface.php:84
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\execute
‪TYPO3 CMS Extbase Persistence QueryResultInterface object[] execute($returnRawQueryResult=false)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\setQuerySettings
‪setQuerySettings(QuerySettingsInterface $querySettings)
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface
Definition: SourceInterface.php:23
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getQuerySettings
‪QuerySettingsInterface getQuerySettings()
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrInterface
Definition: OrInterface.php:29
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\like
‪ComparisonInterface like($propertyName, $operand)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\lessThan
‪ComparisonInterface lessThan($propertyName, $operand)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_LESS_THAN_OR_EQUAL_TO
‪const OPERATOR_LESS_THAN_OR_EQUAL_TO
Definition: QueryInterface.php:59
‪TYPO3\CMS\Extbase\Persistence
Definition: ClassesConfiguration.php:18
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\in
‪ComparisonInterface in($propertyName, $operand)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\setOffset
‪TYPO3 CMS Extbase Persistence QueryInterface setOffset($offset)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getSource
‪TYPO3 CMS Extbase Persistence Generic Qom SourceInterface getSource()
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING
‪const ORDER_ASCENDING
Definition: QueryInterface.php:99
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_CONTAINS
‪const OPERATOR_CONTAINS
Definition: QueryInterface.php:79
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\matching
‪TYPO3 CMS Extbase Persistence QueryInterface matching($constraint)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\setSource
‪setSource(SourceInterface $source)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getStatement
‪TYPO3 CMS Extbase Persistence Generic Qom Statement getStatement()
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface
Definition: ComparisonInterface.php:66
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_IS_EMPTY
‪const OPERATOR_IS_EMPTY
Definition: QueryInterface.php:94
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getOrderings
‪array< string, string > getOrderings()
‪TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface
Definition: QuerySettingsInterface.php:26
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_LESS_THAN
‪const OPERATOR_LESS_THAN
Definition: QueryInterface.php:54
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\lessThanOrEqual
‪ComparisonInterface lessThanOrEqual($propertyName, $operand)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO
‪const OPERATOR_EQUAL_TO
Definition: QueryInterface.php:34
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\setLimit
‪TYPO3 CMS Extbase Persistence QueryInterface setLimit($limit)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\getType
‪string getType()
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\greaterThanOrEqual
‪ComparisonInterface greaterThanOrEqual($propertyName, $operand)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_NOT_EQUAL_TO
‪const OPERATOR_NOT_EQUAL_TO
Definition: QueryInterface.php:44
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface
Definition: ConstraintInterface.php:27
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\contains
‪ComparisonInterface contains($propertyName, $operand)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO_NULL
‪const OPERATOR_EQUAL_TO_NULL
Definition: QueryInterface.php:39
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_IS_NULL
‪const OPERATOR_IS_NULL
Definition: QueryInterface.php:89
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\setType
‪setType(string $type)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\count
‪int count()
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\AndInterface
Definition: AndInterface.php:27
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\logicalNot
‪TYPO3 CMS Extbase Persistence Generic Qom NotInterface logicalNot(ConstraintInterface $constraint)
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\greaterThan
‪ComparisonInterface greaterThan($propertyName, $operand)