Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function paginate(AdapterInterface $adapter, $itemsPerPage = null, $page = null)
 {
     $page = $this->pager->paginate($adapter, $itemsPerPage, $page);
     if ($page->isOutOfBounds()) {
         throw new OutOfBoundsException($page->getNumber(), $page->getPageCount(), $this->redirectKey);
     }
     return $page;
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function paginate(AdapterInterface $adapter, $itemsPerPage = null, $page = null)
 {
     return $this->pager->paginate($adapter, $itemsPerPage, $page ?: $this->getCurrentPage());
 }