Example #1
0
 /**
  * Set the amount of items per page
  *
  * @param int $limit;
  * @return Zym_Paginate_Abstract
  */
 public function setRowLimit($limit)
 {
     parent::setRowLimit($limit);
     $this->_paginateDataSet();
     return $this;
 }
 /**
  * Render the naviagtion to get to next pages
  *
  * @param Zym_Paginate_Abstract $paginate
  * @return string
  */
 protected function _renderNextNavigation(Zym_Paginate_Abstract $paginate)
 {
     $xhtml = '';
     if ($paginate->hasNext()) {
         $lastPageLocation = array_merge($this->_targetLocation, array($this->_currentPageAttrib => $paginate->getPageCount()));
         $nextPageLocation = array_merge($this->_targetLocation, array($this->_currentPageAttrib => $paginate->getNextPageNumber()));
         $xhtml .= $this->_renderListItem($nextPageLocation, $this->_labelNext);
         $xhtml .= $this->_renderListItem($lastPageLocation, $this->_labelLast);
     }
     return $xhtml;
 }