From c31d8e9959efade437fb0a661f6f44329cc74664 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 19 Apr 2011 15:43:00 +0200 Subject: Code autoformatiert --- .../modules/user/controllers/PersonController.php | 25 ++++++++-------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'application/modules/user/controllers/PersonController.php') diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php index ba4be8e..5cb8d09 100644 --- a/application/modules/user/controllers/PersonController.php +++ b/application/modules/user/controllers/PersonController.php @@ -14,19 +14,12 @@ class user_PersonController extends Zend_Controller_Action { protected $person = null; - protected $personmapper = null; - protected $membershipMapper = null; - protected $memberships = null; - protected $groupMapper = null; - protected $groups = null; - protected $groupRequestMapper = null; - protected $userIDsNamespace = null; public function init() @@ -45,22 +38,22 @@ class user_PersonController extends Zend_Controller_Action $this->groupRequestMapper = new Application_Model_GroupRequestMapper(); $this->membershipMapper = new Application_Model_MembershipMapper(); $this->memberships = $this->membershipMapper->findBy(array("personID" => $this->person->getID()),true); - + $rightrolesMapper = new Application_Model_RightRolesMapper(); - $rightroles = new Application_Model_RightRoles(); + $rightroles = new Application_Model_RightRoles(); $role = new Application_Model_Role(); $roleMapper = new Application_Model_RoleMapper(); - - $this->view->apikeys = array(); + $this->view->apikeys = array(); + if(isset($this->memberships)) { foreach($this->memberships as $membership) { $group = $this->groupMapper->find($membership['groupID']); @list($rightroles) = $rightrolesMapper->findBy(array('rightID' => '55', 'roleID' => $membership['roleID'])); $role = $roleMapper->find($membership['roleID']); if($rightroles != null) - $this->view->apikeys[$group->getID()] = $membership['apikey']; - + $this->view->apikeys[$group->getID()] = $membership['apikey']; + $this->groups[] = array ( 'groupID' => $group->getID(), 'title' => $group->getTitle(), @@ -347,8 +340,8 @@ class user_PersonController extends Zend_Controller_Action 'membershipID' => $membership['membershipID'], 'group' => $group->getTitle(), 'role' => $role->getTitle()); - } - + } + } if(count($suspendlist) >=1){ $pbsNotifier = new Pbs_Notifier(); @@ -439,7 +432,7 @@ class user_PersonController extends Zend_Controller_Action { if(!Pbs_Acl::checkRight('gdm')) { $this->_redirect('/user'); - } + } $grouprequestID = $this->_request->getParam('grouprequestID'); $grouprequest = $this->groupRequestMapper->find($grouprequestID); try { -- cgit v1.2.3-55-g7522