From f755b6a457f96e9489a8dc89e35dea6882927f42 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 11 Mar 2011 08:57:39 +0100 Subject: MacAdressenFilterung gefixxt, Fomular Buttons eingebaut, debug code entfernt --- application/models/FilterEntriesMapper.php | 10 ++-------- application/models/FilterMapper.php | 2 -- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'application/models') diff --git a/application/models/FilterEntriesMapper.php b/application/models/FilterEntriesMapper.php index bf57dbd..0f070ee 100644 --- a/application/models/FilterEntriesMapper.php +++ b/application/models/FilterEntriesMapper.php @@ -60,10 +60,8 @@ class Application_Model_FilterEntriesMapper if (0 == count($result) && null == $id1) { $this->getDbTable()->insert($data); - echo 'inserted'; } else { - print_r($this->getDbTable()->update($data, array('filterentriesID = ?' => $id1))); - echo 'updated'; + $this->getDbTable()->update($data, array('filterentriesID = ?' => $id1)); } }catch (Zend_Exception $e) { @@ -78,11 +76,9 @@ class Application_Model_FilterEntriesMapper if ((null == $id1)) { - echo 'case1'; return; } else { $this->getDbTable()->delete(array('filterentriesID = ?' => $id1)); - echo 'case2'; } }catch (Zend_Exception $e) { @@ -93,11 +89,9 @@ class Application_Model_FilterEntriesMapper public function find($filterentriesID, Application_Model_FilterEntries $filterentries) { $result = $this->getDbTable()->find($filterentriesID); - echo 'dump1'; if (0 == count($result)) { return; - } - echo 'dump2'; + } $row = $result->current(); $filterentries->setID($row->filterentriesID) diff --git a/application/models/FilterMapper.php b/application/models/FilterMapper.php index eba9b71..1e83da6 100644 --- a/application/models/FilterMapper.php +++ b/application/models/FilterMapper.php @@ -55,10 +55,8 @@ class Application_Model_FilterMapper if (null === ($id = $filter->getID()) ) { unset($data['filterID']); $this->getDbTable()->insert($data); - echo 'case1'; } else { $this->getDbTable()->update($data, array('filterID = ?' => $id)); - echo 'case2'; } } -- cgit v1.2.3-55-g7522