‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Persistence\QueryResultInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\QueryResultInterface:
TYPO3\CMS\Extbase\Persistence\ForwardCompatibleQueryResultInterface TYPO3\CMS\Extbase\Persistence\Generic\QueryResult TYPO3\CMS\Extbase\Persistence\Generic\QueryResult

Public Member Functions

TYPO3 CMS Extbase Persistence QueryInterface getQuery ()
 
object null getFirst ()
 
array toArray ()
 

Detailed Description

A lazy result list that is returned by Query::execute()

Definition at line 21 of file QueryResultInterface.php.

Member Function Documentation

◆ getFirst()

object null TYPO3\CMS\Extbase\Persistence\QueryResultInterface::getFirst ( )

Returns the first object in the result set

Returns
‪object|null

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\QueryResult.

◆ getQuery()

TYPO3 CMS Extbase Persistence QueryInterface TYPO3\CMS\Extbase\Persistence\QueryResultInterface::getQuery ( )
Todo:
‪v12: Enable and drop ForwardCompatibleQueryResultInterface

Returns a clone of the query object

Returns
‪\TYPO3\CMS\Extbase\Persistence\QueryInterface

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\QueryResult.

◆ toArray()

array TYPO3\CMS\Extbase\Persistence\QueryResultInterface::toArray ( )

Returns an array with the objects in the result set

Returns
‪array

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\QueryResult.