Example #1
0
 /**
  * @param int $step
  * @internal
  */
 public function handlePaginate($step)
 {
     if ($this->getPresenter()->isAjax()) {
         foreach ($this->settings->getSnippets() as $snippet) {
             $this->getPresenter()->redrawControl($snippet);
         }
     } else {
         $this->redirect('this');
     }
 }
Example #2
0
 public function handleReset()
 {
     $this->filtering = [];
     $this->limit = NULL;
     $this->links = [];
     $this->getPaginator()->resetPage();
     if (($snippets = $this->settings->getSnippets()) && $this->getPresenter()->isAjax()) {
         foreach ($snippets as $snippet) {
             $this->getPresenter()->redrawControl($snippet);
         }
     } else {
         $this->redirect('this');
     }
 }