summaryrefslogtreecommitdiffstats
path: root/application/controllers/StatisticController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/StatisticController.php')
-rwxr-xr-xapplication/controllers/StatisticController.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/application/controllers/StatisticController.php b/application/controllers/StatisticController.php
index 3f42944..57d73d3 100755
--- a/application/controllers/StatisticController.php
+++ b/application/controllers/StatisticController.php
@@ -104,6 +104,27 @@ class StatisticController extends Zend_Controller_Action
}
+ public function typelistAction() {
+
+ $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->getTypeBarCount($poolID);
+ $ret['dataPie'] = $this->eventMapper->getTypePieCount($poolID);
+
+ echo json_encode($ret);
+
+ }
+
public function categoryAction() {
}
@@ -116,4 +137,8 @@ class StatisticController extends Zend_Controller_Action
}
+ public function typeAction() {
+
+ }
+
} \ No newline at end of file