예제 #1
0
 public function getManageUsersData()
 {
     $groupUserID = !is_null($this->userData['parentUserID']) ? $this->userData['parentUserID'] : $this->userData['userID'];
     $this->userData['myUsers'] = AuthUserData::getUsersByParent($groupUserID);
     foreach ($this->userData['myUsers'] as $key => $user) {
         $roles = AuthUserRolesData::getUserRoles($this->userData['myUsers'][$key]['id']);
         $dataBlock['myUsers'][$key]['roles'] = array();
         foreach ($roles as $value) {
             $this->userData['myUsers'][$key]['roles'][] = $value['roleName'];
         }
     }
     return $this->userData['myUsers'];
 }