summaryrefslogtreecommitdiffstats
path: root/application/models/ConfigMapper.php
diff options
context:
space:
mode:
authormichael pereira2011-03-06 20:12:36 +0100
committermichael pereira2011-03-06 20:12:36 +0100
commit0e017ebdc1edbbf230f0f0160f103c39ef675725 (patch)
treee7848e531d30a01145f2f98d8a3189ea6699c54d /application/models/ConfigMapper.php
parentConfig fertig (diff)
downloadpbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.tar.gz
pbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.tar.xz
pbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.zip
datenbank erweitert, BootMenu, Config fertig
Diffstat (limited to 'application/models/ConfigMapper.php')
-rw-r--r--application/models/ConfigMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/models/ConfigMapper.php b/application/models/ConfigMapper.php
index 52dcb86..8ee9e0c 100644
--- a/application/models/ConfigMapper.php
+++ b/application/models/ConfigMapper.php
@@ -32,7 +32,7 @@ class Application_Model_ConfigMapper
public function save(Application_Model_Config $config)
{
- $data = array('configID'=> $config->getID() ,'groupID'=> $config->getGroupID() ,'shellscript'=> $config->getShellscript(), 'title'=> $config->getTitle() );
+ $data = array('configID'=> $config->getID() ,'groupID'=> $config->getGroupID(), 'membershipID'=> $config->getMembershipID(), 'shellscript'=> $config->getShellscript(), 'title'=> $config->getTitle() , 'created'=> $config->getCreated() );
if (null === ($id = $config->getID()) ) {
unset($data['configID']);
@@ -60,7 +60,7 @@ class Application_Model_ConfigMapper
$row = $result->current();
- $config->setID($row->configID)->setGroupID($row->groupID)->setShellscript($row->shellscript)->setTitle($row->title);
+ $config->setID($row->configID)->setGroupID($row->groupID)->setMembershipID($row->membershipID)->setCreated($row->created)->setShellscript($row->shellscript)->setTitle($row->title);
}
public function fetchAll()
@@ -70,7 +70,7 @@ class Application_Model_ConfigMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_Config();
- $entry->setID($row->configID)->setGroupID($row->groupID)->setShellscript($row->shellscript)->setTitle($row->title);
+ $entry->setID($row->configID)->setGroupID($row->groupID)->setMembershipID($row->membershipID)->setCreated($row->created)->setShellscript($row->shellscript)->setTitle($row->title);
$entries[] = $entry;
}