summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authormichael pereira2011-03-11 10:02:41 +0100
committermichael pereira2011-03-11 10:02:41 +0100
commita83dfa457afb43a661074bdc1676c1a1d7653625 (patch)
treefebf55c855326b3d6ba79fb663f17fad88f02403 /application/models
parentbootos getressources (diff)
parentAddClientToPool über Formular gefixxt, Buttonbeschriftungen anhand der Actio... (diff)
downloadpbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.tar.gz
pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.tar.xz
pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/models')
-rw-r--r--application/models/FilterEntriesMapper.php10
-rw-r--r--application/models/FilterMapper.php2
2 files changed, 2 insertions, 10 deletions
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';
}
}