summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authormichael pereira2011-04-05 15:34:21 +0200
committermichael pereira2011-04-05 15:34:21 +0200
commitbd5988e7b8c3377a3768efc1dedabd199a90c342 (patch)
tree4da2484cb51bc629323a651e41fecaa1a00f065a /application/models
parentsuch-aussehen geƤndert (diff)
downloadpbs2-bd5988e7b8c3377a3768efc1dedabd199a90c342.tar.gz
pbs2-bd5988e7b8c3377a3768efc1dedabd199a90c342.tar.xz
pbs2-bd5988e7b8c3377a3768efc1dedabd199a90c342.zip
find Methode angepasst
Diffstat (limited to 'application/models')
-rw-r--r--application/models/BootMenuEntriesMapper.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php
index 4d82c96..02c5e07 100644
--- a/application/models/BootMenuEntriesMapper.php
+++ b/application/models/BootMenuEntriesMapper.php
@@ -119,7 +119,7 @@ class Application_Model_BootMenuEntriesMapper
}
}
- public function find($id, Application_Model_BootMenuEntries $botmenuentries)
+ public function find($id, Application_Model_BootMenuEntries $botmenuentries = null)
{
$result = $this->getDbTable()->find($id);
if (0 == count($result)) {
@@ -128,8 +128,13 @@ class Application_Model_BootMenuEntriesMapper
$row = $result->current();
- $botmenuentries->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setKclappend($row->kclappend)->setOrder($row->order);
-
+ if($botmenuentries == null){
+ $botmenuentries = new Application_Model_BootMenuEntriesMapper();
+ $botmenuentries->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setKclappend($row->kclappend)->setOrder($row->order);
+ return $botmenuentries;
+ }else{
+ $botmenuentries->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setKclappend($row->kclappend)->setOrder($row->order);
+ }
}
public function fetchAll()