public function getPerformer(Am_Controller_Pages $controller) { $callback = $this->callback; if (is_string($callback)) { $page = new $callback($controller->getRequest(), $controller->view); } else { $page = call_user_func($callback, $this->id, $this->title, $controller); } if (!is_object($page)) { throw new Am_Exception_InternalError("Could not " . __METHOD__ . "({$this->id}) - not an object"); } return $page; }
function preDispatch() { $this->getDi()->navigationUserTabs->setActive('helpdesk'); $this->getDi()->helpdeskStrategy->setUserId($this->getRequest()->getParam('user_id', 0)); $this->view->headLink()->appendStylesheet($this->view->_scriptCss('helpdesk-admin.css')); $this->setActiveMenu('users-browse'); parent::preDispatch(); }
function preDispatch() { $this->getDi()->auth->requireLogin(ROOT_URL . '/helpdesk'); $this->view->headLink()->appendStylesheet($this->view->_scriptCss('helpdesk-user.css')); if ($page = $this->getDi()->navigationUser->findOneBy('id', 'helpdesk')) { $page->setActive(true); } parent::preDispatch(); }
public function preDispatch() { parent::preDispatch(); $this->setActiveMenu('affiliates-banners'); }
function preDispatch() { $this->view->headLink()->appendStylesheet($this->view->_scriptCss('helpdesk-admin.css')); $this->setActiveMenu('helpdesk-ticket-my'); parent::preDispatch(); }
public function renderPage(Am_Controller_Pages_Page $page) { $this->setActiveMenu($page->getId() == 'all' ? 'content' : 'content-' . $page->getId()); return parent::renderPage($page); }
public function preDispatch() { parent::preDispatch(); $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/resourceaccess.js"); $this->setActiveMenu('products-protect'); }
function preDispatch() { $this->getDi()->auth->requireLogin(ROOT_URL . '/helpdesk'); $this->view->headLink()->appendStylesheet($this->view->_scriptCss('helpdesk-user.css')); parent::preDispatch(); }