From 8ceb7bad18f257127ad5790a9c0ec157d7e03f4d Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 4 Apr 2011 17:12:48 +0200 Subject: WICHTIG findBy Methode geƤndert & alles angepasst, siehe Ticket --- library/Pbs/Acl.php | 4 ++-- library/Pbs/Filter.php | 4 ++-- library/Pbs/Session.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'library') diff --git a/library/Pbs/Acl.php b/library/Pbs/Acl.php index bad0277..f3ed08e 100644 --- a/library/Pbs/Acl.php +++ b/library/Pbs/Acl.php @@ -6,7 +6,7 @@ class Pbs_Acl $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); $roleID = $userIDsNamespace['roleID']; $rightRolesMapper = new Application_Model_RightRolesMapper(); - $rightroles = $rightRolesMapper->findBy('roleID', $roleID); + $rightroles = $rightRolesMapper->findBy(array('roleID' => $roleID),true); $rightMapper = new Application_Model_RightMapper(); foreach($rightroles as $rightrole) { $right = $rightMapper->find($rightrole['rightID']); @@ -21,7 +21,7 @@ class Pbs_Acl $membershipMapper = new Application_Model_MembershipMapper(); $membership = $membershipMapper->find($membershipID); $rightRolesMapper = new Application_Model_RightRolesMapper(); - $rightroles = $rightRolesMapper->findBy('roleID', $membership->getRoleID()); + $rightroles = $rightRolesMapper->findBy(array('roleID' => $membership->getRoleID()),true); $rightMapper = new Application_Model_RightMapper(); foreach($rightroles as $rightrole) { $right = $rightMapper->find($rightrole['rightID']); diff --git a/library/Pbs/Filter.php b/library/Pbs/Filter.php index dea61e4..5a83a40 100644 --- a/library/Pbs/Filter.php +++ b/library/Pbs/Filter.php @@ -56,7 +56,7 @@ class Pbs_Filter{ $session = new Application_Model_Session(); $sessionmapper = new Application_Model_SessionMapper(); - $sessionarray = $sessionmapper->findBy('alphasessionID',$_SESSION['alphasessionID']); + $sessionarray = $sessionmapper->findBy(array('alphasessionID' => $_SESSION['alphasessionID']),true); $session->setOptions($sessionarray[0]); $session->setID($sessionarray['sessionID']); @@ -123,7 +123,7 @@ class Pbs_Filter{ if(!$testFilter){ $poolentry = new Application_Model_PoolEntries(); $poolentrymapper = new Application_Model_PoolEntriesMapper(); - $poolentry = $poolentrymapper->findby('clientID',$client->getID()); + $poolentry = $poolentrymapper->findby(array('clientID' => $client->getID()),true); $poolentry = $poolentry[0]; $poolID = $poolentry['poolID']; diff --git a/library/Pbs/Session.php b/library/Pbs/Session.php index ab29a04..79d3ead 100644 --- a/library/Pbs/Session.php +++ b/library/Pbs/Session.php @@ -7,7 +7,7 @@ class Pbs_Session{ $uniqid = $this->getUniqueCode(10); $sm = new Application_Model_SessionMapper(); - while(count($sm->findBy('alphasessionID',$uniqid))>0){ + while(count($sm->findBy(array('alphasessionID' => $uniqid),true))>0){ $uniqid = $this->getUniqueCode(16); } @@ -18,7 +18,7 @@ class Pbs_Session{ } public function createClient(Application_Model_Client $client){ $clientmapper = new Application_Model_ClientMapper(); - $result = $clientmapper->findBy('macadress',$client->getMacadress()); + $result = $clientmapper->findBy(array('macadress' => $client->getMacadress()),true); if(count($result)>0){ $client->setOptions($result[0]); $client->setID($result[0]['clientID']); -- cgit v1.2.3-55-g7522