/** * @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'); } }
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'); } }