| @@ 133-142 (lines=10) @@ | ||
| 130 | * |
|
| 131 | * @return string |
|
| 132 | */ |
|
| 133 | protected function getPrevLink() |
|
| 134 | { |
|
| 135 | $aVars = ['text' => $this->previousText]; |
|
| 136 | if($this->currentPage > 1) |
|
| 137 | { |
|
| 138 | $aVars['call'] = $this->getPageCall($this->currentPage - 1); |
|
| 139 | return $this->xRenderer->render('pagination::links/prev', $aVars); |
|
| 140 | } |
|
| 141 | return $this->xRenderer->render('pagination::links/disabled', $aVars); |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * Render the next link. |
|
| @@ 149-158 (lines=10) @@ | ||
| 146 | * |
|
| 147 | * @return string |
|
| 148 | */ |
|
| 149 | protected function getNextLink() |
|
| 150 | { |
|
| 151 | $aVars = ['text' => $this->nextText]; |
|
| 152 | if($this->currentPage < $this->totalPages) |
|
| 153 | { |
|
| 154 | $aVars['call'] = $this->getPageCall($this->currentPage + 1); |
|
| 155 | return $this->xRenderer->render('pagination::links/next', $aVars); |
|
| 156 | } |
|
| 157 | return $this->xRenderer->render('pagination::links/disabled', $aVars); |
|
| 158 | } |
|
| 159 | ||
| 160 | /** |
|
| 161 | * Render the pagination links. |
|