diff options
| author | michael pereira | 2011-03-06 20:12:36 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-06 20:12:36 +0100 |
| commit | 0e017ebdc1edbbf230f0f0160f103c39ef675725 (patch) | |
| tree | e7848e531d30a01145f2f98d8a3189ea6699c54d /application/models/ConfigMapper.php | |
| parent | Config fertig (diff) | |
| download | pbs2-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.php | 6 |
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; } |
