diff options
| author | michael pereira | 2011-03-16 13:01:41 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-16 13:01:41 +0100 |
| commit | 28317cb90e3ba13aa5a946f24eabf027fa78cf6b (patch) | |
| tree | 0b4907b5ac8adc671b7c43b2e33fa9c0a2f7cf4c /application/models | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.tar.gz pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.tar.xz pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.zip | |
Default KCL wird jetzt automatisch geupdated
Diffstat (limited to 'application/models')
| -rw-r--r-- | application/models/BootMenuEntries.php | 10 | ||||
| -rw-r--r-- | application/models/BootMenuEntriesMapper.php | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/application/models/BootMenuEntries.php b/application/models/BootMenuEntries.php index ec42507..c20c2d0 100644 --- a/application/models/BootMenuEntries.php +++ b/application/models/BootMenuEntries.php @@ -7,6 +7,7 @@ class Application_Model_BootMenuEntries protected $_bootmenuID; protected $_title; protected $_kcl; + protected $_kclappend; protected $_configID; protected $_order; @@ -91,6 +92,15 @@ class Application_Model_BootMenuEntries $this->_kcl = $_kcl; return $this; } + public function getKclappend() + { + return $this->_kclappend; + } + public function setKclappend($_kclappend) + { + $this->_kclappend = $_kclappend; + return $this; + } public function getConfigID() { return $this->_configID; diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php index accb8ff..7a3759f 100644 --- a/application/models/BootMenuEntriesMapper.php +++ b/application/models/BootMenuEntriesMapper.php @@ -76,7 +76,7 @@ class Application_Model_BootMenuEntriesMapper public function save(Application_Model_BootMenuEntries $botmenuentries) { - $data = array('bootmenuentriesID' => $botmenuentries->getID(), 'bootosID'=> $botmenuentries->getBootosID() ,'bootmenuID'=> $botmenuentries->getBootmenuID() ,'configID'=> $botmenuentries->getConfigID() ,'title'=> $botmenuentries->getTitle() ,'kcl'=> $botmenuentries->getKcl() ,'order'=> $botmenuentries->getOrder() ); + $data = array('bootmenuentriesID' => $botmenuentries->getID(), 'bootosID'=> $botmenuentries->getBootosID() ,'bootmenuID'=> $botmenuentries->getBootmenuID() ,'configID'=> $botmenuentries->getConfigID() ,'title'=> $botmenuentries->getTitle() ,'kcl'=> $botmenuentries->getKcl(),'kclappend'=> $botmenuentries->getKclappend() ,'order'=> $botmenuentries->getOrder() ); if (null === ($id = $botmenuentries->getID()) ) { unset($data['bootmenuentriesID']); @@ -130,7 +130,7 @@ 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)->setOrder($row->order); + $botmenuentries->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKclappend($row->kclappend)->setOrder($row->order); } @@ -140,7 +140,7 @@ class Application_Model_BootMenuEntriesMapper $entries = array(); foreach ($resultSet as $row) { $entry = new Application_Model_BootMenuEntries(); - $entry->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setOrder($row->order); + $entry->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setKclappend($row->kclappend)->setOrder($row->order); $entries[] = $entry; } return $entries; |
