summaryrefslogtreecommitdiffstats
path: root/application/models/BootMenuEntriesMapper.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-04-05 17:36:16 +0200
committerBjörn Geiger2011-04-05 17:36:16 +0200
commite0935357c77f0fbeea2b0ffaec447d3521368006 (patch)
tree6009c5511dfbf6dba493baed536212b23d2cfc4f /application/models/BootMenuEntriesMapper.php
parentPaging bei Person, Group und Role (diff)
parentrecht für superadmin vergessen (diff)
downloadpbs2-e0935357c77f0fbeea2b0ffaec447d3521368006.tar.gz
pbs2-e0935357c77f0fbeea2b0ffaec447d3521368006.tar.xz
pbs2-e0935357c77f0fbeea2b0ffaec447d3521368006.zip
Merge branch 'master' of ssh://git.openslx.org/lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/models/BootMenuEntriesMapper.php')
-rw-r--r--application/models/BootMenuEntriesMapper.php25
1 files changed, 22 insertions, 3 deletions
diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php
index 4d82c96..466b80b 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,27 @@ 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_BootMenuEntries();
+ $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()