‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Persistence\Generic\Query Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Query:
TYPO3\CMS\Extbase\Persistence\QueryInterface TYPO3\CMS\Extbase\Persistence\QueryInterface

Public Member Functions

 setType (string $type)
 
 getParentQuery ()
 
 setParentQuery (?QueryInterface $parentQuery)
 
 setQuerySettings (QuerySettingsInterface $querySettings)
 
QuerySettingsInterface getQuerySettings ()
 
string getType ()
 
 setSource (SourceInterface $source)
 
TYPO3 CMS Extbase Persistence Generic Qom SourceInterface getSource ()
 
QueryResultInterface array execute ($returnRawQueryResult=false)
 
QueryInterface setOrderings (array $orderings)
 
QueryInterface setLimit ($limit)
 
QueryInterface unsetLimit ()
 
int null getLimit ()
 
QueryInterface setOffset ($offset)
 
int getOffset ()
 
QueryInterface matching ($constraint)
 
QueryInterface statement ($statement, array $parameters=[])
 
TYPO3 CMS Extbase Persistence Generic Qom Statement getStatement ()
 
TYPO3 CMS Extbase Persistence Generic Qom ConstraintInterface null getConstraint ()
 
 logicalAnd (ConstraintInterface ... $constraints)
 
 logicalOr (ConstraintInterface ... $constraints)
 
TYPO3 CMS Extbase Persistence Generic Qom NotInterface logicalNot (ConstraintInterface $constraint)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface equals ($propertyName, $operand, $caseSensitive=true)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface like ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface contains ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface in ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface lessThan ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface lessThanOrEqual ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface greaterThan ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface greaterThanOrEqual ($propertyName, $operand)
 
TYPO3 CMS Extbase Persistence Generic Qom AndInterface between ($propertyName, $operandLower, $operandUpper)
 
 __wakeup ()
 
array __sleep ()
 
int count ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Persistence\QueryInterface
array< string, string > getOrderings ()
 

Public Attributes

const JCR_JOIN_TYPE_INNER = '{http://www.jcp.org/jcr/1.0}joinTypeInner'
 
const JCR_JOIN_TYPE_LEFT_OUTER = '{http://www.jcp.org/jcr/1.0}joinTypeLeftOuter'
 
const JCR_JOIN_TYPE_RIGHT_OUTER = '{http://www.jcp.org/jcr/1.0}joinTypeRightOuter'
 
const CHARSET = 'utf-8'
 
$this persistenceManager = $persistenceManager
 
$this qomFactory = $qomFactory
 
$this container = $container
 
array< string, function getOrderings() { return $this-> orderings
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Extbase\Persistence\QueryInterface
const OPERATOR_EQUAL_TO = 1
 
const OPERATOR_EQUAL_TO_NULL = 101
 
const OPERATOR_NOT_EQUAL_TO = 2
 
const OPERATOR_NOT_EQUAL_TO_NULL = 202
 
const OPERATOR_LESS_THAN = 3
 
const OPERATOR_LESS_THAN_OR_EQUAL_TO = 4
 
const OPERATOR_GREATER_THAN = 5
 
const OPERATOR_GREATER_THAN_OR_EQUAL_TO = 6
 
const OPERATOR_LIKE = 7
 
const OPERATOR_CONTAINS = 8
 
const OPERATOR_IN = 9
 
const OPERATOR_IS_NULL = 10
 
const OPERATOR_IS_EMPTY = 11
 
const ORDER_ASCENDING = 'ASC'
 
const ORDER_DESCENDING = 'DESC'
 

Protected Member Functions

string getSelectorName ()
 

Protected Attributes

string $type
 
DataMapFactory $dataMapFactory
 
PersistenceManagerInterface $persistenceManager
 
QueryObjectModelFactory $qomFactory
 
ContainerInterface $container
 
TYPO3 CMS Extbase Persistence Generic Qom SourceInterface $source
 
TYPO3 CMS Extbase Persistence Generic Qom ConstraintInterface $constraint
 
TYPO3 CMS Extbase Persistence Generic Qom Statement $statement
 
array< string, $orderings=array();protected int|null $limit;protected int $offset;protected QuerySettingsInterface $querySettings;protected QueryInterface|null $parentQuery;public function __construct(DataMapFactory $dataMapFactory, PersistenceManagerInterface $persistenceManager, QueryObjectModelFactory $qomFactory, ContainerInterface $container) { $this-> dataMapFactory = $dataMapFactory
 

Detailed Description

The Query class used to run queries against the database

Todo:
‪v12: Candidate to declare final - Can be decorated or standalone class implementing the interface @template T of object

<T>

Definition at line 40 of file Query.php.

Member Function Documentation

◆ __sleep()

array TYPO3\CMS\Extbase\Persistence\Generic\Query::__sleep ( )
Returns
‪array

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 589 of file Query.php.

◆ __wakeup()

TYPO3\CMS\Extbase\Persistence\Generic\Query::__wakeup ( )

◆ between()

TYPO3 CMS Extbase Persistence Generic Qom AndInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::between (   $propertyName,
  $operandLower,
  $operandUpper 
)

Returns a greater than or equal criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operandLower‪The value of the lower boundary to compare against
mixed$operandUpper‪The value of the upper boundary to compare against
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\AndInterface

Definition at line 567 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\greaterThanOrEqual(), TYPO3\CMS\Extbase\Persistence\Generic\Query\lessThanOrEqual(), and TYPO3\CMS\Extbase\Persistence\Generic\Query\logicalAnd().

◆ contains()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::contains (   $propertyName,
  $operand 
)

Returns a "contains" criterion used for matching objects against a query. It matches if the multivalued property contains the given operand.

Parameters
string$propertyName‪The name of the (multivalued) property to compare against
mixed$operand‪The value to compare with
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 489 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_CONTAINS, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ count()

int TYPO3\CMS\Extbase\Persistence\Generic\Query::count ( )

Returns the query result count.

Returns
‪int The query result count

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 599 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\execute().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\logicalAnd(), and TYPO3\CMS\Extbase\Persistence\Generic\Query\logicalOr().

◆ equals()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::equals (   $propertyName,
  $operand,
  $caseSensitive = true 
)

Returns an equals criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with
bool$caseSensitive‪Whether the equality test should be done case-sensitive
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 447 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\CHARSET, TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\logicalOr().

◆ execute()

QueryResultInterface array TYPO3\CMS\Extbase\Persistence\Generic\Query::execute (   $returnRawQueryResult = false)

Executes the query against the database and returns the result

Parameters
bool$returnRawQueryResult‪avoids the object mapping by the persistence
Returns
‪QueryResultInterface|array The query result object or an array if $returnRawQueryResult is TRUE @phpstan-return ($returnRawQueryResult is true ? list<T> : QueryResultInterface<int,T>)

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 222 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\container, and TYPO3\CMS\Extbase\Persistence\Generic\Query\persistenceManager.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\count().

◆ getConstraint()

TYPO3 CMS Extbase Persistence Generic Qom ConstraintInterface null TYPO3\CMS\Extbase\Persistence\Generic\Query::getConstraint ( )

Gets the constraint for this query.

Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface|null the constraint, or null if none

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 376 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$constraint.

◆ getLimit()

int null TYPO3\CMS\Extbase\Persistence\Generic\Query::getLimit ( )

Returns the maximum size of the result set to limit.

Returns
‪int|null

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 300 of file Query.php.

◆ getOffset()

int TYPO3\CMS\Extbase\Persistence\Generic\Query::getOffset ( )

Returns the start offset of the result set.

Returns
‪int

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 328 of file Query.php.

◆ getParentQuery()

TYPO3\CMS\Extbase\Persistence\Generic\Query::getParentQuery ( )

Definition at line 130 of file Query.php.

◆ getQuerySettings()

QuerySettingsInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::getQuerySettings ( )

Returns the Query Settings.

Exceptions
Exception
Returns
QuerySettingsInterface $querySettings The Query Settings

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 160 of file Query.php.

◆ getSelectorName()

string TYPO3\CMS\Extbase\Persistence\Generic\Query::getSelectorName ( )
protected

Returns the selector's name or an empty string, if the source is not a selector

Todo:
‪This has to be checked at another place
Returns
‪string The selector name

Definition at line 193 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$source, and TYPO3\CMS\Extbase\Persistence\Generic\Query\getSource().

◆ getSource()

TYPO3 CMS Extbase Persistence Generic Qom SourceInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::getSource ( )

Gets the node-tuple source for this query.

Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface the node-tuple source; non-null

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 207 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$source, TYPO3\CMS\Extbase\Persistence\Generic\Query\dataMapFactory, TYPO3\CMS\Extbase\Persistence\Generic\Query\getType(), and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\getSelectorName().

◆ getStatement()

TYPO3 CMS Extbase Persistence Generic Qom Statement TYPO3\CMS\Extbase\Persistence\Generic\Query::getStatement ( )

Returns the statement of this query.

Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 366 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$statement.

◆ getType()

string TYPO3\CMS\Extbase\Persistence\Generic\Query::getType ( )

Returns the type this query cares for.

Returns
‪string @phpstan-return class-string<T>

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 174 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$type.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\getSource().

◆ greaterThan()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::greaterThan (   $propertyName,
  $operand 
)

Returns a greater than criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 542 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_GREATER_THAN, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\logicalAnd().

◆ greaterThanOrEqual()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::greaterThanOrEqual (   $propertyName,
  $operand 
)

Returns a greater than or equal criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 554 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_GREATER_THAN_OR_EQUAL_TO, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\between().

◆ in()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::in (   $propertyName,
  $operand 
)

Returns an "in" criterion used for matching objects against a query. It matches if the property's value is contained in the multivalued operand.

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with, multivalued
Exceptions
Exception

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 503 of file Query.php.

References TYPO3\CMS\Extbase\Utility\TypeHandlingUtility\isValidTypeForMultiValueComparison(), TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_IN, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ lessThan()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::lessThan (   $propertyName,
  $operand 
)

Returns a less than criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 518 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_LESS_THAN, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ lessThanOrEqual()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::lessThanOrEqual (   $propertyName,
  $operand 
)

Returns a less or equal than criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 530 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_LESS_THAN_OR_EQUAL_TO, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\between().

◆ like()

TYPO3 CMS Extbase Persistence Generic Qom ComparisonInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::like (   $propertyName,
  $operand 
)

Returns a like criterion used for matching objects against a query

Parameters
string$propertyName‪The name of the property to compare against
mixed$operand‪The value to compare with
Returns
‪\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 472 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_LIKE, and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ logicalAnd()

TYPO3\CMS\Extbase\Persistence\Generic\Query::logicalAnd ( ConstraintInterface ...  $constraints)

Performs a logical conjunction of multiple given constraints. The method takes an arbitrary number of constraints and concatenates them with a boolean AND.

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 385 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$constraint, TYPO3\CMS\Extbase\Persistence\Generic\Query\count(), TYPO3\CMS\Extbase\Persistence\Generic\Query\greaterThan(), and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\between().

◆ logicalNot()

TYPO3 CMS Extbase Persistence Generic Qom NotInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::logicalNot ( ConstraintInterface  $constraint)

Performs a logical negation of the given constraint

Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface$constraint‪Constraint to negate
Exceptions

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 434 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ logicalOr()

TYPO3\CMS\Extbase\Persistence\Generic\Query::logicalOr ( ConstraintInterface ...  $constraints)

Performs a logical disjunction of multiple given constraints. The method takes an arbitrary number of constraints and concatenates them with a boolean OR.

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 408 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$constraint, TYPO3\CMS\Extbase\Persistence\Generic\Query\count(), TYPO3\CMS\Extbase\Persistence\Generic\Query\equals(), and TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ matching()

QueryInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::matching (   $constraint)

The constraint used to limit the result set. Returns $this to allow for chaining (fluid interface)

Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface$constraint
Returns
QueryInterface @phpstan-return QueryInterface<T>

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 341 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$constraint.

◆ setLimit()

QueryInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::setLimit (   $limit)

Sets the maximum size of the result set to limit. Returns $this to allow for chaining (fluid interface)

Parameters
int$limit
Exceptions

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 274 of file Query.php.

◆ setOffset()

QueryInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::setOffset (   $offset)

Sets the start offset of the result set to offset. Returns $this to allow for chaining (fluid interface)

Parameters
int$offset
Exceptions

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 314 of file Query.php.

◆ setOrderings()

QueryInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::setOrderings ( array  $orderings)

Sets the property names to order the result by. Expected like this: array( 'foo' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING ) where 'foo' and 'bar' are property names.

Parameters
array$orderings‪The property names to order by
Returns
QueryInterface @phpstan-return QueryInterface<T>

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 245 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\orderings.

◆ setParentQuery()

TYPO3\CMS\Extbase\Persistence\Generic\Query::setParentQuery ( ?QueryInterface  $parentQuery)

Definition at line 138 of file Query.php.

◆ setQuerySettings()

TYPO3\CMS\Extbase\Persistence\Generic\Query::setQuerySettings ( QuerySettingsInterface  $querySettings)

Sets the Query Settings. These Query settings must match the settings expected by the specific Storage Backend.

Parameters
QuerySettingsInterface$querySettings‪The Query Settings

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 149 of file Query.php.

◆ setSource()

TYPO3\CMS\Extbase\Persistence\Generic\Query::setSource ( SourceInterface  $source)

Sets the source to fetch the result from

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 182 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$source.

◆ setType()

TYPO3\CMS\Extbase\Persistence\Generic\Query::setType ( string  $type)

@phpstan-param class-string<T> $type

Implements TYPO3\CMS\Extbase\Persistence\QueryInterface.

Definition at line 122 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\$type.

◆ statement()

QueryInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::statement (   $statement,
array  $parameters = [] 
)

Sets the statement of this query. If you use this, you will lose the abstraction from a concrete storage backend (database).

Parameters
string | \TYPO3\CMS\Core\Database\Query\QueryBuilder | \Doctrine\DBAL\Statement$statement‪The statement
array$parameters‪An array of parameters. These will be bound to placeholders '?' in the $statement.
Returns
QueryInterface

Definition at line 355 of file Query.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Query\qomFactory.

◆ unsetLimit()

QueryInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::unsetLimit ( )

Resets a previously set maximum size of the result set. Returns $this to allow for chaining (fluid interface)

Returns
QueryInterface

Definition at line 289 of file Query.php.

Member Data Documentation

◆ $constraint

◆ $container

ContainerInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::$container
protected

Definition at line 70 of file Query.php.

◆ $dataMapFactory

DataMapFactory TYPO3\CMS\Extbase\Persistence\Generic\Query::$dataMapFactory
protected

Definition at line 67 of file Query.php.

◆ $persistenceManager

PersistenceManagerInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::$persistenceManager
protected

Definition at line 68 of file Query.php.

◆ $qomFactory

QueryObjectModelFactory TYPO3\CMS\Extbase\Persistence\Generic\Query::$qomFactory
protected

Definition at line 69 of file Query.php.

◆ $source

TYPO3 CMS Extbase Persistence Generic Qom SourceInterface TYPO3\CMS\Extbase\Persistence\Generic\Query::$source
protected

◆ $statement

TYPO3 CMS Extbase Persistence Generic Qom Statement TYPO3\CMS\Extbase\Persistence\Generic\Query::$statement
protected

Definition at line 82 of file Query.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\getStatement().

◆ $type

string TYPO3\CMS\Extbase\Persistence\Generic\Query::$type
protected

@phpstan-var class-string<T>

Definition at line 65 of file Query.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\getType(), and TYPO3\CMS\Extbase\Persistence\Generic\Query\setType().

◆ CHARSET

const TYPO3\CMS\Extbase\Persistence\Generic\Query::CHARSET = 'utf-8'

Charset of strings in QOM

Definition at line 60 of file Query.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\equals().

◆ container

$this TYPO3\CMS\Extbase\Persistence\Generic\Query::container = $container

Definition at line 116 of file Query.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\execute().

◆ dataMapFactory

array<string, $orderings = array( ); protected int|null $limit; protected int $offset; protected QuerySettingsInterface $querySettings; protected QueryInterface|null $parentQuery; public function __construct( DataMapFactory $dataMapFactory, PersistenceManagerInterface $persistenceManager, QueryObjectModelFactory $qomFactory, ContainerInterface $container ) { $this-> TYPO3\CMS\Extbase\Persistence\Generic\Query::dataMapFactory = $dataMapFactory
protected

◆ JCR_JOIN_TYPE_INNER

const TYPO3\CMS\Extbase\Persistence\Generic\Query::JCR_JOIN_TYPE_INNER = '{http://www.jcp.org/jcr/1.0}joinTypeInner'

An inner join.

Definition at line 45 of file Query.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper\getSource().

◆ JCR_JOIN_TYPE_LEFT_OUTER

const TYPO3\CMS\Extbase\Persistence\Generic\Query::JCR_JOIN_TYPE_LEFT_OUTER = '{http://www.jcp.org/jcr/1.0}joinTypeLeftOuter'

A left-outer join.

Definition at line 50 of file Query.php.

◆ JCR_JOIN_TYPE_RIGHT_OUTER

const TYPO3\CMS\Extbase\Persistence\Generic\Query::JCR_JOIN_TYPE_RIGHT_OUTER = '{http://www.jcp.org/jcr/1.0}joinTypeRightOuter'

A right-outer join.

Definition at line 55 of file Query.php.

◆ orderings

array<string, function getOrderings() { return $this-> TYPO3\CMS\Extbase\Persistence\Generic\Query::orderings

Returns the property names to order the result by. Like this: array( 'foo' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING )

Returns
‪array<string, string>

Definition at line 262 of file Query.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Query\setOrderings().

◆ persistenceManager

$this TYPO3\CMS\Extbase\Persistence\Generic\Query::persistenceManager = $persistenceManager

◆ qomFactory