示例#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;
 }
示例#2
0
 /**
  * {@inheritDoc}
  */
 public function paginate(AdapterInterface $adapter, $itemsPerPage = null, $page = null)
 {
     return $this->pager->paginate($adapter, $itemsPerPage, $page ?: $this->getCurrentPage());
 }