summaryrefslogtreecommitdiffstats
path: root/application/controllers/StatisticController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/StatisticController.php')
-rw-r--r--application/controllers/StatisticController.php27
1 files changed, 24 insertions, 3 deletions
diff --git a/application/controllers/StatisticController.php b/application/controllers/StatisticController.php
index 1610f4c..92ba4bf 100644
--- a/application/controllers/StatisticController.php
+++ b/application/controllers/StatisticController.php
@@ -56,13 +56,34 @@ class StatisticController extends Zend_Controller_Action
/*if($this->acl->checkRight('eoo')) {
$eventList = $this->eventMapper->fetchAll();
- } else {
+ } else {
$eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID']));
- }*/
-
+ }*/
+
$ret = $this->eventMapper->getCategoryCount($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);
+
+ }
+
} \ No newline at end of file