summaryrefslogtreecommitdiffstats
path: root/application/models/EventreportMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/EventreportMapper.php')
-rwxr-xr-xapplication/models/EventreportMapper.php39
1 files changed, 1 insertions, 38 deletions
diff --git a/application/models/EventreportMapper.php b/application/models/EventreportMapper.php
index 11dacbc..da37e66 100755
--- a/application/models/EventreportMapper.php
+++ b/application/models/EventreportMapper.php
@@ -235,43 +235,6 @@ class Application_Model_EventreportMapper
return $return;
}
-
- public function getSuccessTypePieCount($poolID) {
-
- $db = Zend_Db_Table::getDefaultAdapter();
- if($poolID != 'all'){
- $select = $this->getDbTable()->select()
- ->setIntegrityCheck(false)
- ->from(array('pcr' => 'poolctrl_eventreport'),
- array('errortype' => 'pcr.errors', 'count' => 'COUNT(*)'))
- ->join(array('pce' => 'poolctrl_event'),
- 'pce.eventID = pcr.eventID',
- array())
- ->where('pce.pbs_poolID = ?', $poolID)
- ->group('pcr.errors')
- ->order('pce.category ASC');}
- else {
- $select = $this->getDbTable()->select()
- ->setIntegrityCheck(false)
- ->from(array('pcr' => 'poolctrl_eventreport'),
- array('errortype' => 'pcr.errors', 'count' => 'COUNT(*)'))
- ->join(array('pce' => 'poolctrl_event'),
- 'pce.eventID = pcr.eventID',
- array())
- ->group('pcr.errors')
- ->order('pce.category ASC');
- }
-
- $stmt = $db->query($select);
- $result = $stmt->fetchAll(PDO::FETCH_NUM);
- $ret = null;
-
- foreach ($result as $r) {
- $ret[] = array($r[0], (int)$r[1]);
- }
-
- return array($ret);
- }
-
+
}