diff options
author | Simon | 2011-04-20 13:08:33 +0200 |
---|---|---|
committer | Simon | 2011-04-20 13:08:33 +0200 |
commit | 624cbcae5c9b5bcedf03c77460b07eb20fbb2366 (patch) | |
tree | 8a768c4f55d982384982f3c541b1d4b8d319ca96 /application/models | |
parent | Ticket #229 - Hilfetexte wurde bei den Bereichen, zu denen Benutzer zugriff h... (diff) | |
download | pbs2-624cbcae5c9b5bcedf03c77460b07eb20fbb2366.tar.gz pbs2-624cbcae5c9b5bcedf03c77460b07eb20fbb2366.tar.xz pbs2-624cbcae5c9b5bcedf03c77460b07eb20fbb2366.zip |
Automatischer Start nach x Sekunden hinzugefügt
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/BootMenu.php | 10 | ||||
-rw-r--r-- | application/models/BootMenuMapper.php | 26 |
2 files changed, 32 insertions, 4 deletions
diff --git a/application/models/BootMenu.php b/application/models/BootMenu.php index 82e771a..dae3776 100644 --- a/application/models/BootMenu.php +++ b/application/models/BootMenu.php @@ -16,6 +16,7 @@ class Application_Model_BootMenu protected $_membershipID; protected $_groupID; protected $_title; + protected $_startcounter; protected $_created; protected $_defaultbootmenu; @@ -96,6 +97,15 @@ class Application_Model_BootMenu { return $this->_created; } + public function setStartcounter($_startcounter) + { + $this->_startcounter = $_startcounter; + return $this; + } + public function getStartcounter() + { + return $this->_startcounter; + } public function setCreated($_created) { $this->_created = $_created; diff --git a/application/models/BootMenuMapper.php b/application/models/BootMenuMapper.php index 8b39a5a..6ba72bd 100644 --- a/application/models/BootMenuMapper.php +++ b/application/models/BootMenuMapper.php @@ -84,7 +84,13 @@ class Application_Model_BootMenuMapper public function save(Application_Model_BootMenu $botmenu) { - $data = array('bootmenuID'=> $botmenu->getID() ,'membershipID'=> $botmenu->getMembershipID(), 'groupID'=> $botmenu->getGroupID() ,'title'=> $botmenu->getTitle() ,'created'=> $botmenu->getCreated(), 'defaultbootmenu' => $botmenu->getDefaultbootmenu()); + $data = array('bootmenuID'=> $botmenu->getID() , + 'membershipID'=> $botmenu->getMembershipID(), + 'groupID'=> $botmenu->getGroupID() , + 'title'=> $botmenu->getTitle() , + 'startcounter'=> $botmenu->getStartcounter() , + 'created'=> $botmenu->getCreated(), + 'defaultbootmenu' => $botmenu->getDefaultbootmenu()); if (null === ($id = $botmenu->getID()) ) { unset($data['bootmenuID']); @@ -113,10 +119,22 @@ class Application_Model_BootMenuMapper if($botmenu == null){ $botmenu = new Application_Model_BootMenu(); - $botmenu->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setTitle($row->title)->setCreated($row->created)->setDefaultbootmenu($row->defaultbootmenu); + $botmenu->setID($row->bootmenuID) + ->setMembershipID($row->membershipID) + ->setGroupID($row->groupID) + ->setTitle($row->title) + ->setStartcounter($row->startcounter) + ->setCreated($row->created) + ->setDefaultbootmenu($row->defaultbootmenu); return $botmenu; }else{ - $botmenu->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setTitle($row->title)->setCreated($row->created)->setDefaultbootmenu($row->defaultbootmenu); + $botmenu->setID($row->bootmenuID) + ->setMembershipID($row->membershipID) + ->setGroupID($row->groupID) + ->setTitle($row->title) + ->setStartcounter($row->startcounter) + ->setCreated($row->created) + ->setDefaultbootmenu($row->defaultbootmenu); } @@ -129,7 +147,7 @@ class Application_Model_BootMenuMapper foreach ($resultSet as $row) { $entry = new Application_Model_BootMenu(); - $entry->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setTitle($row->title)->setCreated($row->created)->setDefault($row->default); + $entry->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setTitle($row->title)->setStartcounter($row->startcounter)->setCreated($row->created)->setDefault($row->default); $entries[] = $entry; } |