‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Pagination\QueryResultPaginator Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Pagination\QueryResultPaginator:
TYPO3\CMS\Core\Pagination\AbstractPaginator TYPO3\CMS\Core\Pagination\PaginatorInterface

Public Member Functions

 __construct (QueryResultInterface $queryResult, int $currentPageNumber=1, int $itemsPerPage=10)
 
iterable QueryResultInterface getPaginatedItems ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Pagination\AbstractPaginator
 withItemsPerPage (int $itemsPerPage)
 
 withCurrentPageNumber (int $currentPageNumber)
 
 getNumberOfPages ()
 
 getCurrentPageNumber ()
 
 getKeyOfFirstPaginatedItem ()
 
 getKeyOfLastPaginatedItem ()
 

Protected Member Functions

 updatePaginatedItems (int $limit, int $offset)
 
 getTotalAmountOfItems ()
 
 getAmountOfItemsOnCurrentPage ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Pagination\AbstractPaginator
 hasItemsOnCurrentPage ()
 
 updateInternalState ()
 
 setItemsPerPage (int $itemsPerPage)
 
 setCurrentPageNumber (int $currentPageNumber)
 

Private Attributes

QueryResultInterface $queryResult
 
QueryResultInterface $paginatedQueryResult
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Pagination\AbstractPaginator
int $numberOfPages = 1
 
int $keyOfFirstPaginatedItem = 0
 
int $keyOfLastPaginatedItem = 0
 

Detailed Description

Definition at line 23 of file QueryResultPaginator.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getAmountOfItemsOnCurrentPage()

TYPO3\CMS\Extbase\Pagination\QueryResultPaginator::getAmountOfItemsOnCurrentPage ( )
protected

Must return the amount of paginated items on the current page

Reimplemented from TYPO3\CMS\Core\Pagination\AbstractPaginator.

Definition at line 67 of file QueryResultPaginator.php.

◆ getPaginatedItems()

iterable QueryResultInterface TYPO3\CMS\Extbase\Pagination\QueryResultPaginator::getPaginatedItems ( )
Returns
‪iterable|QueryResultInterface

Implements TYPO3\CMS\Core\Pagination\PaginatorInterface.

Definition at line 48 of file QueryResultPaginator.php.

References TYPO3\CMS\Extbase\Pagination\QueryResultPaginator\$paginatedQueryResult.

◆ getTotalAmountOfItems()

TYPO3\CMS\Extbase\Pagination\QueryResultPaginator::getTotalAmountOfItems ( )
protected

Must return the total amount of all unpaginated items

Reimplemented from TYPO3\CMS\Core\Pagination\AbstractPaginator.

Definition at line 62 of file QueryResultPaginator.php.

◆ updatePaginatedItems()

TYPO3\CMS\Extbase\Pagination\QueryResultPaginator::updatePaginatedItems ( int  $itemsPerPage,
int  $offset 
)
protected

Must update the paginated items, i.e. the subset of all items, limited and defined by the given amount of items per page and offset

Reimplemented from TYPO3\CMS\Core\Pagination\AbstractPaginator.

Definition at line 53 of file QueryResultPaginator.php.

Member Data Documentation

◆ $paginatedQueryResult

QueryResultInterface TYPO3\CMS\Extbase\Pagination\QueryResultPaginator::$paginatedQueryResult
private

◆ $queryResult

QueryResultInterface TYPO3\CMS\Extbase\Pagination\QueryResultPaginator::$queryResult
private