view->compact) { $req = $this->getRequest(); $this->view->sortBox = SortBox::create( 'sortbox-' . $req->getActionName(), $columns )->applyRequest($req); } return $this; } /** * Create a Limiter widget at the `limiter' view property * * In case the current view has been requested as compact this method does nothing. * * @return $this */ protected function setupLimitControl() { if (! $this->view->compact) { $this->view->limiter = new Limiter(); } return $this; } /** * Set the view property `paginator' to the given Zend_Paginator * * In case the current view has been requested as compact this method does nothing. * * @param Zend_Paginator $paginator The Zend_Paginator for which to show a pagination control * * @return $this */ protected function setupPaginationControl(Zend_Paginator $paginator) { if (! $this->view->compact) { $this->view->paginator = $paginator; } return $this; } /** * Set the view property `filterEditor' to the given FilterEditor * * In case the current view has been requested as compact this method does nothing. * * @param Form $editor The FilterEditor * * @return $this */ protected function setupFilterControl($editor) { if (! $this->view->compact) { $this->view->filterEditor = $editor; } return $this; } }