From 5ba69509dd69ab4b30fc7e4510f70ba62050054c Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 29 Mar 2011 11:28:16 +0200 Subject: Shortcut und RightCategoryID in Rightmapper hinzugefügt --- application/models/RightMapper.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'application/models/RightMapper.php') diff --git a/application/models/RightMapper.php b/application/models/RightMapper.php index 023e223..d59f518 100644 --- a/application/models/RightMapper.php +++ b/application/models/RightMapper.php @@ -47,7 +47,11 @@ class Application_Model_RightMapper public function save(Application_Model_Right $right) { - $data = array('rightID'=> $right->getID() ,'title'=> $right->getTitle() ,'description'=> $right->getDescription() ); + $data = array('rightID'=> $right->getID(), + 'rightcategoryID'=> $right->getRightcategoryID(), + 'shortcut'=>$right->getShortcut(), + 'title'=> $right->getTitle() , + 'description'=> $right->getDescription() ); if (null === ($id = $right->getID()) ) { unset($data['rightID']); @@ -76,7 +80,11 @@ class Application_Model_RightMapper $row = $result->current(); $right = new Application_Model_Right(); - $right->setID($row->rightID)->setTitle($row->title)->setDescription($row->description); + $right->setID($row->rightID) + ->setRightcategoryID($row->rightcategoryID) + ->setShortcut($row->shortcut) + ->setTitle($row->title) + ->setDescription($row->description); return $right; } @@ -87,7 +95,11 @@ class Application_Model_RightMapper foreach ($resultSet as $row) { $entry = new Application_Model_Right(); - $entry->setID($row->rightID)->setTitle($row->title)->setDescription($row->description); + $entry->setID($row->rightID) + ->setRightcategoryID($row->rightcategoryID) + ->setShortcut($row->shortcut) + ->setTitle($row->title) + ->setDescription($row->description); $entries[] = $entry; } -- cgit v1.2.3-55-g7522