Пример #1
0
 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;
 }
Пример #2
0
 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();
 }
Пример #3
0
 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');
 }
Пример #5
0
 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');
 }
Пример #8
0
 function preDispatch()
 {
     $this->getDi()->auth->requireLogin(ROOT_URL . '/helpdesk');
     $this->view->headLink()->appendStylesheet($this->view->_scriptCss('helpdesk-user.css'));
     parent::preDispatch();
 }