diff options
| author | michael pereira | 2011-03-21 10:52:51 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-21 10:52:51 +0100 |
| commit | 3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac (patch) | |
| tree | d70593ed8261f466b41d21731421dfb6489d7dfa /application/models | |
| parent | Preboot Controller eingerichtet (diff) | |
| parent | Login in User Module (diff) | |
| download | pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.tar.gz pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.tar.xz pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.zip | |
zfproject
Diffstat (limited to 'application/models')
| -rw-r--r-- | application/models/FilterMapper.php | 16 |
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)); } } |
