summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authormichael pereira2011-07-11 00:51:43 +0200
committermichael pereira2011-07-11 00:51:43 +0200
commite01348134e7d44de9471c4d76659cab41a6c9952 (patch)
treebba0e9343e6b7ed80fd57b7623fef01ae481357f /library
parentSession fuer ipxe (diff)
downloadpbs2-e01348134e7d44de9471c4d76659cab41a6c9952.tar.gz
pbs2-e01348134e7d44de9471c4d76659cab41a6c9952.tar.xz
pbs2-e01348134e7d44de9471c4d76659cab41a6c9952.zip
Session und Filter fuer ipxe Bootmenu
Diffstat (limited to 'library')
-rw-r--r--library/Pbs/Filter.php2
-rw-r--r--library/Pbs/Session.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/library/Pbs/Filter.php b/library/Pbs/Filter.php
index 9cbd0ba..5b8e53b 100644
--- a/library/Pbs/Filter.php
+++ b/library/Pbs/Filter.php
@@ -60,7 +60,7 @@ class Pbs_Filter{
$session->setOptions($sessionarray[0]);
@$session->setID($sessionarray['sessionID']);
- $bootisoMapper = new Application_Model_BootisoMapper();
+ $bootisoMapper = new Application_Model_BootIsoMapper();
$bootiso = new Application_Model_BootIso();
$bootisoMapper->find($session->getBootisoID(),$bootiso);
$groupID = $bootiso->getGroupID();
diff --git a/library/Pbs/Session.php b/library/Pbs/Session.php
index 7686077..12e6738 100644
--- a/library/Pbs/Session.php
+++ b/library/Pbs/Session.php
@@ -12,16 +12,16 @@
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);
$sm = new Application_Model_SessionMapper();
while(count($sm->findBy(array('alphasessionID' => $uniqid),true))>0){
$uniqid = $this->getUniqueCode(16);
}
- $session->setAlphasessionID($uniqid);
+ $session->setAlphasessionID($uniqid);
+
$id = $sessionmapper->save($session);
$sessionmapper->find($id, $session);
return $session;