summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authormichael pereira2011-03-21 10:52:51 +0100
committermichael pereira2011-03-21 10:52:51 +0100
commit3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac (patch)
treed70593ed8261f466b41d21731421dfb6489d7dfa /application/models
parentPreboot Controller eingerichtet (diff)
parentLogin in User Module (diff)
downloadpbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.tar.gz
pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.tar.xz
pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.zip
zfproject
Diffstat (limited to 'application/models')
-rw-r--r--application/models/FilterMapper.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/application/models/FilterMapper.php b/application/models/FilterMapper.php
index 1e83da6..92900b0 100644
--- a/application/models/FilterMapper.php
+++ b/application/models/FilterMapper.php
@@ -47,16 +47,20 @@ class Application_Model_FilterMapper
public function save(Application_Model_Filter $filter)
{
- $data = array('filterID'=> $filter->getID() ,'membershipID'=> $filter->getMembershipID() ,'groupID'=> $filter->getGroupID() ,'bootmenuID'=> $filter->getBootmenuID() ,'title'=> $filter->getTitle() ,'description'=> $filter->getDescription() ,'created'=> $filter->getCreated() ,'priority'=> $filter->getPriority() );
- echo "<pre>";
- print_r(array('woot',$filter->getID()));
- echo "</pre>";
+ $data = array('filterID'=> $filter->getID() ,
+ 'membershipID'=> $filter->getMembershipID() ,
+ 'groupID'=> $filter->getGroupID() ,
+ 'bootmenuID'=> $filter->getBootmenuID() ,
+ 'title'=> $filter->getTitle() ,
+ 'description'=> $filter->getDescription() ,
+ 'created'=> $filter->getCreated() ,
+ 'priority'=> $filter->getPriority() );
if (null === ($id = $filter->getID()) ) {
unset($data['filterID']);
- $this->getDbTable()->insert($data);
+ return $this->getDbTable()->insert($data);
} else {
- $this->getDbTable()->update($data, array('filterID = ?' => $id));
+ return $this->getDbTable()->update($data, array('filterID = ?' => $id));
}
}