diff options
| author | Simon | 2011-03-16 17:59:26 +0100 |
|---|---|---|
| committer | Simon | 2011-03-16 17:59:26 +0100 |
| commit | c58a1d0cef4b2088bb35fe0e37c047cad6331b4f (patch) | |
| tree | 0f11e79b93ba54efbccbf5566fe8e9605e08b87a | |
| parent | Lib umbenannt und beispielverwendung korrigiert (diff) | |
| download | pbs2-c58a1d0cef4b2088bb35fe0e37c047cad6331b4f.tar.gz pbs2-c58a1d0cef4b2088bb35fe0e37c047cad6331b4f.tar.xz pbs2-c58a1d0cef4b2088bb35fe0e37c047cad6331b4f.zip | |
ClientMapper return value
| -rw-r--r-- | application/models/ClientMapper.php | 4 | ||||
| -rw-r--r-- | library/Pbs/Session.php | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/application/models/ClientMapper.php b/application/models/ClientMapper.php index 2c530d9..e3bb25d 100644 --- a/application/models/ClientMapper.php +++ b/application/models/ClientMapper.php @@ -55,9 +55,9 @@ class Application_Model_ClientMapper if (null === ($id = $client->getID()) ) { unset($data['clientID']); - $this->getDbTable()->insert($data); + return $this->getDbTable()->insert($data); } else { - $this->getDbTable()->update($data, array('clientID = ?' => $id)); + return $this->getDbTable()->update($data, array('clientID = ?' => $id)); } } diff --git a/library/Pbs/Session.php b/library/Pbs/Session.php index 15cb93b..592b89c 100644 --- a/library/Pbs/Session.php +++ b/library/Pbs/Session.php @@ -2,10 +2,6 @@ class Pbs_Session{ - public function testfunction() - { - print_a("das ist ein Test"); - } public function createsession(Application_Model_Session $session){ $sessionmapper = new Application_Model_SessionMapper(); |
