summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/models/Event.php11
-rw-r--r--application/models/EventMapper.php50
-rw-r--r--application/models/Eventreport.php2
-rw-r--r--application/models/EventreportMapper.php14
4 files changed, 47 insertions, 30 deletions
diff --git a/application/models/Event.php b/application/models/Event.php
index 8884028..470eee8 100644
--- a/application/models/Event.php
+++ b/application/models/Event.php
@@ -116,6 +116,7 @@ class Application_Model_Event
public function setTitle($_title)
{
$this->_title = $_title;
+ return $this;
}
public function getStart()
@@ -126,6 +127,7 @@ class Application_Model_Event
public function setStart($_start)
{
$this->_start = $_start;
+ return $this;
}
public function getEnd()
@@ -136,6 +138,7 @@ class Application_Model_Event
public function setEnd($_end)
{
$this->_end = $_end;
+ return $this;
}
public function getParticipants()
@@ -146,6 +149,7 @@ class Application_Model_Event
public function setParticipants($_participants)
{
$this->_participants = $_participants;
+ return $this;
}
public function getCategory()
@@ -156,6 +160,7 @@ class Application_Model_Event
public function setCategory($_category)
{
$this->_category = $_category;
+ return $this;
}
public function getPbsPoolID()
@@ -166,6 +171,7 @@ class Application_Model_Event
public function setPbsPoolID($_pbs_poolID)
{
$this->_pbs_poolID = $_pbs_poolID;
+ return $this;
}
public function getPbsMembershipID()
@@ -176,6 +182,7 @@ class Application_Model_Event
public function setPbsMembershipID($_pbs_membershipID)
{
$this->_pbs_membershipID = $_pbs_membershipID;
+ return $this;
}
public function getPbsBootosID()
@@ -186,6 +193,7 @@ class Application_Model_Event
public function setPbsBootosID($_pbs_bootosID)
{
$this->_pbs_bootosID = $_pbs_bootosID;
+ return $this;
}
public function getRepeat()
@@ -196,6 +204,7 @@ class Application_Model_Event
public function setRepeat($_repeat)
{
$this->_repeat = $_repeat;
+ return $this;
}
public function getImmediate()
@@ -206,6 +215,7 @@ class Application_Model_Event
public function setImmediate($_immediate)
{
$this->_immediate = $_immediate;
+ return $this;
}
public function getNote()
@@ -216,6 +226,7 @@ class Application_Model_Event
public function setNote($_note)
{
$this->_note = $_note;
+ return $this;
}
}
diff --git a/application/models/EventMapper.php b/application/models/EventMapper.php
index 7402429..aef0675 100644
--- a/application/models/EventMapper.php
+++ b/application/models/EventMapper.php
@@ -114,18 +114,19 @@ class Application_Model_EventMapper
$event = new Application_Model_Event();
}
- $event->setID($row->eventID);
- $event->setCategory($row->category);
- $event->setTitle($row->title);
- $event->setPbsMembershipID($row->pbs_membershipID);
- $event->setEnd($row->end);
- $event->setImmediate($row->immediate);
- $event->setNote($row->note);
- $event->setParticipants($row->participants);
- $event->setPbsBootosID($row->pbs_bootosID);
- $event->setPbsPoolID($row->pbs_poolID);
- $event->setRepeat($row->repeat);
- $event->setStart($row->start);
+ $event
+ ->setID($row->eventID)
+ ->setCategory($row->category)
+ ->setTitle($row->title)
+ ->setPbsMembershipID($row->pbs_membershipID)
+ ->setEnd($row->end)
+ ->setImmediate($row->immediate)
+ ->setNote($row->note)
+ ->setParticipants($row->participants)
+ ->setPbsBootosID($row->pbs_bootosID)
+ ->setPbsPoolID($row->pbs_poolID)
+ ->setRepeat($row->repeat)
+ ->setStart($row->start);
}
public function fetchAll()
@@ -136,18 +137,19 @@ class Application_Model_EventMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_Event();
- $entry->setID($row->eventID);
- $entry->setCategory($row->category);
- $entry->setTitle($row->title);
- $entry->setPbsMembershipID($row->pbs_membershipID);
- $entry->setEnd($row->end);
- $entry->setImmediate($row->immediate);
- $entry->setNote($row->note);
- $entry->setParticipants($row->participants);
- $entry->setPbsBootosID($row->pbs_bootosID);
- $entry->setPbsPoolID($row->pbs_poolID);
- $entry->setRepeat($row->repeat);
- $entry->setStart($row->start);
+ $entry
+ ->setID($row->eventID)
+ ->setCategory($row->category)
+ ->setTitle($row->title)
+ ->setPbsMembershipID($row->pbs_membershipID)
+ ->setEnd($row->end)
+ ->setImmediate($row->immediate)
+ ->setNote($row->note)
+ ->setParticipants($row->participants)
+ ->setPbsBootosID($row->pbs_bootosID)
+ ->setPbsPoolID($row->pbs_poolID)
+ ->setRepeat($row->repeat)
+ ->setStart($row->start);
$entries[$row->eventID] = $entry;
}
diff --git a/application/models/Eventreport.php b/application/models/Eventreport.php
index b0c061b..3b9d11d 100644
--- a/application/models/Eventreport.php
+++ b/application/models/Eventreport.php
@@ -106,6 +106,7 @@ class Application_Model_Eventreport
public function setReport($_report)
{
$this->_report = $_report;
+ return $this;
}
public function getEventID()
@@ -116,6 +117,7 @@ class Application_Model_Eventreport
public function setEventID($_eventID)
{
$this->_eventID = $_eventID;
+ return $this;
}
}
diff --git a/application/models/EventreportMapper.php b/application/models/EventreportMapper.php
index 51cbe52..41b31e8 100644
--- a/application/models/EventreportMapper.php
+++ b/application/models/EventreportMapper.php
@@ -114,9 +114,10 @@ class Application_Model_EventreportMapper
$eventreport = new Application_Model_Eventreport();
}
- $eventreport->setID($row->reportID);
- $eventreport->setEventID($row->eventID);
- $eventreport->setReport($row->report);
+ $eventreport
+ ->setID($row->reportID)
+ ->setEventID($row->eventID)
+ ->setReport($row->report);
}
public function fetchAll()
@@ -126,9 +127,10 @@ class Application_Model_EventreportMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_Eventreport();
- $entry->setID($row->reportID);
- $entry->setEventID($row->eventID);
- $entry->setReport($row->report);
+ $entry
+ ->setID($row->reportID)
+ ->setEventID($row->eventID)
+ ->setReport($row->report);
$entries[$row->reportID] = $entry;
}