summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/PersonController.php
diff options
context:
space:
mode:
authorSimon2011-04-19 15:43:00 +0200
committerSimon2011-04-19 15:43:00 +0200
commitc31d8e9959efade437fb0a661f6f44329cc74664 (patch)
tree48afaad36266c251f3df4928ed18d6e09478413c /application/modules/user/controllers/PersonController.php
parentAufgeräumt und verschoben (diff)
downloadpbs2-c31d8e9959efade437fb0a661f6f44329cc74664.tar.gz
pbs2-c31d8e9959efade437fb0a661f6f44329cc74664.tar.xz
pbs2-c31d8e9959efade437fb0a661f6f44329cc74664.zip
Code autoformatiert
Diffstat (limited to 'application/modules/user/controllers/PersonController.php')
-rw-r--r--application/modules/user/controllers/PersonController.php25
1 files changed, 9 insertions, 16 deletions
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 {