summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorSebastian Wagner2011-10-26 14:53:53 +0200
committerSebastian Wagner2011-10-26 14:53:53 +0200
commit91318534af71553b80b022f39e3657e22e37dfb9 (patch)
treeb2fdd7ad644f63237b69c4f8c73ee52d3d942565 /application/models
parentsome bugfixes (diff)
downloadpoolctrl-91318534af71553b80b022f39e3657e22e37dfb9.tar.gz
poolctrl-91318534af71553b80b022f39e3657e22e37dfb9.tar.xz
poolctrl-91318534af71553b80b022f39e3657e22e37dfb9.zip
verschiedenes
Diffstat (limited to 'application/models')
-rwxr-xr-xapplication/models/EventMapper.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/application/models/EventMapper.php b/application/models/EventMapper.php
index 3df8d30..70f0b99 100755
--- a/application/models/EventMapper.php
+++ b/application/models/EventMapper.php
@@ -456,4 +456,20 @@ class Application_Model_EventMapper
return $return;
}
+ public function getOtherRepeatEvents($title, $eventIDs) {
+ $db = Zend_Db_Table::getDefaultAdapter();
+ $return = array();
+ $idSelect = implode("' AND eventID <> '", $eventIDs);
+ $select = "SELECT * FROM poolctrl_event WHERE title = '". $title . "' AND eventID <> '" . $idSelect . "'";
+ $stmt = $db->query($select);
+ $results = $stmt->fetchAll();
+ foreach($results as $result) {
+ $event = new Application_Model_Event($result);
+ $event->setID($result['eventID']);
+ $return[] = $event;
+ }
+
+ return $return;
+ }
+
}