diff options
| author | Simon | 2011-03-16 14:42:40 +0100 |
|---|---|---|
| committer | Simon | 2011-03-16 14:42:40 +0100 |
| commit | 29224a1ccc162e457589210168c38529e81a572d (patch) | |
| tree | f049b58ed09cd4bd9de2e3fe882593b75b16cae4 /application/models/ClientMapper.php | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-29224a1ccc162e457589210168c38529e81a572d.tar.gz pbs2-29224a1ccc162e457589210168c38529e81a572d.tar.xz pbs2-29224a1ccc162e457589210168c38529e81a572d.zip | |
Helper initialisiert, ClientController geadded
Diffstat (limited to 'application/models/ClientMapper.php')
| -rw-r--r-- | application/models/ClientMapper.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/application/models/ClientMapper.php b/application/models/ClientMapper.php index 7016ae7..2c530d9 100644 --- a/application/models/ClientMapper.php +++ b/application/models/ClientMapper.php @@ -47,7 +47,11 @@ class Application_Model_ClientMapper public function save(Application_Model_Client $client) { - $data = array('clientID'=> $client->getID() ,'macadress'=> $client->getMacadress() ,'hardwarehash'=> $client->getHardwarehash() ); + $data = array('clientID'=> $client->getID() , + 'groupID' => $client->getGroupID(), + 'macadress'=> $client->getMacadress() , + 'hardwarehash'=> $client->getHardwarehash() + ); if (null === ($id = $client->getID()) ) { unset($data['clientID']); @@ -75,7 +79,7 @@ class Application_Model_ClientMapper $row = $result->current(); - $client->setID($row->clientID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash); + $client->setID($row->clientID)->setGroupID($row->groupID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash); } public function fetchAll() @@ -85,7 +89,7 @@ class Application_Model_ClientMapper foreach ($resultSet as $row) { $entry = new Application_Model_Client(); - $entry->setID($row->clientID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash); + $entry->setID($row->clientID)->setGroupID($row->groupID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash); $entries[] = $entry; } |
