コード例 #1
0
 /**
  * Render the naviagtion to get to previous pages
  *
  * @param Zym_Paginate_Abstract $paginate
  * @return string
  */
 protected function _renderPreviousNavigation(Zym_Paginate_Abstract $paginate)
 {
     $xhtml = '';
     if ($paginate->hasPrevious()) {
         $firstPageLocation = array_merge($this->_targetLocation, array($this->_currentPageAttrib => 1));
         $previousPageLocation = array_merge($this->_targetLocation, array($this->_currentPageAttrib => $paginate->getPreviousPageNumber()));
         $xhtml .= $this->_renderListItem($firstPageLocation, $this->_labelFirst);
         $xhtml .= $this->_renderListItem($previousPageLocation, $this->_labelPrevious);
     }
     return $xhtml;
 }