From 25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Feb 2011 01:12:05 +0100 Subject: Alle Mapper angelegt, Script update --- application/models/BootMenuMapper.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'application/models/BootMenuMapper.php') diff --git a/application/models/BootMenuMapper.php b/application/models/BootMenuMapper.php index a55bce4..5ea1ca2 100644 --- a/application/models/BootMenuMapper.php +++ b/application/models/BootMenuMapper.php @@ -29,12 +29,12 @@ class Application_Model_BootMenuMapper return $this->_dbTable; } - public function save(Application_Model_BootMenu $bootmenu) + public function save(Application_Model_BootMenu $botmenu) { - $data = array('bootmenuID'=> $bootmenu->getID() ,'membershipID'=> $bootmenu->getMembershipID() ,'title'=> $bootmenu->getTitle() ,'time'=> $bootmenu->getTime() ); + $data = array('bootmenuID'=> $botmenu->getBootmenuID() ,'membershipID'=> $botmenu->getMembershipID() ,'title'=> $botmenu->getTitle() ,'time'=> $botmenu->getTime() ); - if (null === ($id = $bootmenu->getID()) ) { + if (null === ($id = $botmenu->getID()) ) { unset($data['id']); $this->getDbTable()->insert($data); } else { @@ -42,7 +42,7 @@ class Application_Model_BootMenuMapper } } - public function find($id, Application_Model_BootMenu $bootmenu) + public function find($id, Application_Model_BootMenu $botmenu) { $result = $this->getDbTable()->find($id); if (0 == count($result)) { @@ -51,7 +51,7 @@ class Application_Model_BootMenuMapper $row = $result->current(); - $bootmenu->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); + $botmenu->setBootmenuID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); } public function fetchAll() @@ -61,7 +61,7 @@ class Application_Model_BootMenuMapper foreach ($resultSet as $row) { $entry = new Application_Model_BootMenu(); - $entry->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); + $entry->setBootmenuID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); $entries[] = $entry; } -- cgit v1.2.3-55-g7522