summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
Diffstat (limited to 'application/models')
-rw-r--r--application/models/Pool.php10
-rw-r--r--application/models/PoolMapper.php8
2 files changed, 17 insertions, 1 deletions
diff --git a/application/models/Pool.php b/application/models/Pool.php
index 11d5a03..f312b19 100644
--- a/application/models/Pool.php
+++ b/application/models/Pool.php
@@ -3,6 +3,7 @@
class Application_Model_Pool
{
protected $_poolID;
+ protected $_groupID;
protected $_title;
protected $_description;
protected $_location;
@@ -54,6 +55,15 @@ class Application_Model_Pool
$this->_poolID = $_poolID;
return $this;
}
+ public function getGroupID()
+ {
+ return $this->_groupID;
+ }
+ public function setGroupID($_groupID)
+ {
+ $this->_groupID = $_groupID;
+ return $this;
+ }
public function getTitle()
{
return $this->_title;
diff --git a/application/models/PoolMapper.php b/application/models/PoolMapper.php
index 994a3fd..9b875ca 100644
--- a/application/models/PoolMapper.php
+++ b/application/models/PoolMapper.php
@@ -48,6 +48,7 @@ class Application_Model_PoolMapper
{
print_a($pol);
$data = array('poolID'=> $pol->getID() ,
+ 'groupID'=> $pol->getGroupID() ,
'title'=> $pol->getTitle() ,
'description'=> $pol->getDescription() ,
'location'=> $pol->getLocation() );
@@ -79,6 +80,7 @@ class Application_Model_PoolMapper
$row = $result->current();
$pol->setID($row->poolID)
+ ->setGroupID($row->groupID)
->setTitle($row->title)
->setDescription($row->description)
->setLocation($row->location);
@@ -91,7 +93,11 @@ class Application_Model_PoolMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_Pool();
- $entry->setID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location);
+ $entry->setID($row->poolID)
+ ->setGroupID($row->groupID)
+ ->setTitle($row->title)
+ ->setDescription($row->description)
+ ->setLocation($row->location);
$entries[] = $entry;
}