eventMapper = new Application_Model_EventMapper(); $this->eventcategoryMapper = new Application_Model_EventcategoryMapper(); if (Zend_Auth::getInstance()->hasIdentity()) { $this->userIDsNamespace = Zend_Session::namespaceGet('userIDs'); if(isset($this->userIDsNamespace['apikey'])) { $this->acl = new Poolctrl_Acl($this->pbs2host, $this->config['pbs2']['checkright'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); } if(!$this->userIDsNamespace['membershipID'] !='') { $this->_helper->redirector('selectmembership', 'person'); return; } } else { $this->_helper->redirector('login', 'auth'); return; } } public function indexAction() { } public function checkrightAction() { $this->_helper->layout->disableLayout(); $rightShortcut = $this->_request->getParam("rightShortcut"); $this->view->right = $this->acl->checkRight($rightShortcut); } public function dumpAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $data = $this->_request->getParam("data"); var_dump($data); } public function categorylistAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $poolID = $this->getRequest()->getParam('poolID'); $userIDsSession = new Zend_Session_Namespace('userIDs'); $userIDsSession->poolID = $poolID; /*if($this->acl->checkRight('eoo')) { $eventList = $this->eventMapper->fetchAll(); } else { $eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID'])); }*/ $ret['dataBar'] = $this->eventMapper->getCategoryBarCount($poolID); $ret['dataPie'] = $this->eventMapper->getCategoryPieCount($poolID); $ret['color'] = $this->eventcategoryMapper->getCategoryColor($poolID); echo json_encode($ret); } public function colorlistAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $poolID = $this->getRequest()->getParam('poolID'); $userIDsSession = new Zend_Session_Namespace('userIDs'); $userIDsSession->poolID = $poolID; /*if($this->acl->checkRight('eoo')) { $eventList = $this->eventMapper->fetchAll(); } else { $eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID'])); }*/ $ret = $this->eventcategoryMapper->getCategoryColor($poolID); echo json_encode($ret); } public function categoryAction() { } public function runningAction() { } }