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.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/application/controllers/StatisticController.php b/application/controllers/StatisticController.php
index cb36b89..4def963 100644
--- a/application/controllers/StatisticController.php
+++ b/application/controllers/StatisticController.php
@@ -37,13 +37,19 @@ class StatisticController extends Zend_Controller_Action
$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');
- $category = $this->getRequest()->getParam('category');
$userIDsSession->poolID = $poolID;
if($this->acl->checkRight('eoo')) {
@@ -51,7 +57,7 @@ class StatisticController extends Zend_Controller_Action
} else {
$eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID']));
}
-
+
$count = 0;
foreach ($eventList as $event){
@@ -60,6 +66,16 @@ class StatisticController extends Zend_Controller_Action
$count += 1;
}
}
- echo $count;
+ //echo $count;
+
+ $ret = array();
+
+ $ret[] = array(3,'Lecture');
+ $ret[] = array(2,'Boot');
+ $ret[] = array(65,'Shutdown');
+ $ret[] = array(20,'Maintenance');
+
+ echo json_encode(array($ret));
+
}
} \ No newline at end of file