GitHunt
AR

armetiz/pagerfanta-iterator

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) {

}

Contributors

Created May 30, 2018
Updated May 30, 2018