function browseUsersAction() { $withWrap = (bool) $this->_request->get('_u_wrap'); unset($_GET['_u_wrap']); $ds = $this->searchUi->getActive()->getQuery(); $grid = new Am_Grid_ReadOnly('_u', ___('Selected for E-Mailing'), $ds, $this->_request, $this->view); if ($withWrap) { $grid->isAjax(false); } $grid->setCountPerPage(10); $grid->addField('login', ___('Username'))->setRenderFunction(array($this, 'renderUserUrl')); $grid->addField('name_f', ___('First Name')); $grid->addField('name_l', ___('Last Name')); $grid->addField('email', ___('E-Mail Address')); $grid->run($this->getResponse()); }
public function displayeditcategoryAction() { if (!$this->strategy->canEditCategory(null)) { throw new Am_Exception_AccessDenied(); } $ds = new Am_Query($this->getDi()->helpdeskCategoryTable); $grid = new Am_Grid_ReadOnly('_helpdesk_category', ___('Categories'), $ds, $this->getRequest(), $this->view, $this->getDi()); $grid->addField('login', ___('Title'))->setRenderFunction(array($this, 'renderEditCategoryTitle')); $grid->setPermissionId(Bootstrap_Helpdesk::ADMIN_PERM_ID); $grid->isAjax($this->isAjax() && $this->isGridRequest('_helpdesk_category')); echo $grid->run(); }