summaryrefslogtreecommitdiffstats
path: root/application/models/EventreportMapper.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-11-14 17:51:43 +0100
committerBjörn Geiger2011-11-14 17:51:43 +0100
commitf8939cfaa12a2a1ad3f207ceb67f850ea61f7f02 (patch)
tree15e94445d4b698c1c72a5199b602ffea2e0960c7 /application/models/EventreportMapper.php
parentEventController Cleaning: API in eigene Klasse ausgelagert (diff)
parentminor (diff)
downloadpoolctrl-f8939cfaa12a2a1ad3f207ceb67f850ea61f7f02.tar.gz
poolctrl-f8939cfaa12a2a1ad3f207ceb67f850ea61f7f02.tar.xz
poolctrl-f8939cfaa12a2a1ad3f207ceb67f850ea61f7f02.zip
Merge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl
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);
- }
-
+
}