summaryrefslogtreecommitdiffstats
path: root/application/models/BootMenuMapper.php
diff options
context:
space:
mode:
authorroot2011-02-09 01:12:05 +0100
committerroot2011-02-09 01:12:05 +0100
commit25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548 (patch)
tree9f99a10e9fede00f2194973a2635c0d99632f320 /application/models/BootMenuMapper.php
parentMapperScript & Mapper angelegt (alle die einen Primärschlüssel besitzen) (diff)
downloadpbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.gz
pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.xz
pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.zip
Alle Mapper angelegt, Script update
Diffstat (limited to 'application/models/BootMenuMapper.php')
-rw-r--r--application/models/BootMenuMapper.php12
1 files changed, 6 insertions, 6 deletions
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;
}