summaryrefslogtreecommitdiffstats
path: root/application/models/RightMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/RightMapper.php')
-rw-r--r--application/models/RightMapper.php18
1 files changed, 15 insertions, 3 deletions
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;
}