21 $this->ref_id = $a_ref_id;
26 global $rbacreview, $rbacadmin;
28 $role_folder_id = $rbacreview->getRoleFolderIdOfObject($this->ref_id);
29 $role_list = $rbacreview->getRoleListByObject($role_folder_id);
30 foreach ($role_list as $role)
32 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
34 $a_rol_id = $role[
'obj_id'];
41 $user = $rbacadmin->assignUser($a_rol_id, $a_usr_id);
50 global $rbacreview, $rbacadmin;
52 $role_folder_id = $rbacreview->getRoleFolderIdOfObject($this->ref_id);
53 $role_list = $rbacreview->getRoleListByObject($role_folder_id);
54 foreach ($role_list as $role)
56 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
58 $a_rol_id = $role[
'obj_id'];
65 $user = $rbacadmin->deassignUser($a_rol_id, $a_usr_id);
76 $role_folder = $rbacreview->getRoleFolderOfObject($this->ref_id);
77 $roles = $rbacreview->getRoleListByObject($role_folder[
'child']);
78 foreach($roles as $role)
80 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
82 $assigned_users = $rbacreview->assignedUsers($role[
'rol_id']);
86 return is_array($assigned_users) ? $assigned_users : array();
94 $role_folder = $rbacreview->getRoleFolderOfObject($this->ref_id);
95 $roles = $rbacreview->getRoleListByObject($role_folder[
'child']);
96 foreach($roles as $role)
98 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
100 $assigned_users = $rbacreview->assignedUsers($role[
'rol_id']);
105 return is_array($assigned_users) ? $assigned_users : array();