Skip to content
Snippets Groups Projects
Commit 36e927d4 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Daniel Goerz
Browse files

[FEATURE] Introduce native pagination for lists

This patch introduces native support for pagination of
lists such as arrays or QueryResults of Extbase. The
main part of this feature is a new PaginatorInterface
that defines a basic set of methods a paginator needs
to implement.

To enable a quick creation of new paginators, an
AbstractPaginator class has been created which holds
the main pagination logic while the concrete paginator
only needs to take care of the concrete data type
handling.

The PaginatorInterface and the AbstractPaginator allow
the creation of futher paginators like one that supports
the doctrine/dbal query builder.

It's basically possible to create paginators for all
sets of items that are countable and which can be
transformed into an iterable sub set of given items.

The PaginationInterface will also be the foundation
for a new type agnostic pagination ViewHelper.

Releases: master
Resolves: #89603
Change-Id: I46c712d8112ae7dca6caaf0c9476402f6ea5054a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62239


Tested-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent bdd32acb
Branches
Tags
Showing
with 1008 additions and 0 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment