adrienbrault/pagerfanta-iterator

0.3.0 2021-05-25 10:04 UTC

This package is auto-updated.

Last update: 2024-11-25 17:35:31 UTC


README

This allows to easily traverse all the pages of a pagerfanta instance:

$pager->setMaxPerPage(10);

foreach (PagerfantaIterator::iterateOverPages($pager) as $page => $pageResults) {

}

This allows to easily traverse all the elements of all the pages:

$pager->setMaxPerPage(10);

foreach (PagerfantaIterator::iterateOverElements($pager) as $index => $element) {

}