diff options
| author | Simon | 2011-03-18 18:49:30 +0100 |
|---|---|---|
| committer | Simon | 2011-03-18 18:49:30 +0100 |
| commit | 5139008cee049b2ab24b870a263996fe9043adeb (patch) | |
| tree | a79c36fce9afc587c73cd4e71c94e72bbc83830e /library/Pbs/Session.php | |
| parent | Ansicht von Pools geändert (diff) | |
| download | pbs2-5139008cee049b2ab24b870a263996fe9043adeb.tar.gz pbs2-5139008cee049b2ab24b870a263996fe9043adeb.tar.xz pbs2-5139008cee049b2ab24b870a263996fe9043adeb.zip | |
User-Oberfläche, FBGui-Oberfläche legt Session&Clients an - für Kiosk-System
apache-default zum ersetzen, damit server von außen erreichbar ist
FilterController weitergearbeitet
Diffstat (limited to 'library/Pbs/Session.php')
| -rw-r--r-- | library/Pbs/Session.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/library/Pbs/Session.php b/library/Pbs/Session.php index 592b89c..eb7c927 100644 --- a/library/Pbs/Session.php +++ b/library/Pbs/Session.php @@ -2,7 +2,7 @@ class Pbs_Session{ - public function createsession(Application_Model_Session $session){ + public function CreateSession(Application_Model_Session $session){ $sessionmapper = new Application_Model_SessionMapper(); $uniqid = $this->getUniqueCode(10); @@ -16,6 +16,18 @@ class Pbs_Session{ $sessionmapper->find($id, $session); return $session; } + public function createClient(Application_Model_Client $client){ + $clientmapper = new Application_Model_ClientMapper(); + $result = $clientmapper->findBy('macadress',$client->getMacadress()); + if(($result)>0){ + $client->setOptions($result); + } + else{ + $id = $clientmapper->save($client); + $clientmapper->find($id, $client); + } + return $client; + } private function getUniqueCode($length = "") { $code = md5(uniqid(rand(), true)); |
