21 $this->ref_id = $a_ref_id;
41 global $rbacreview, $rbacadmin;
43 $role_folder_id = $rbacreview->getRoleFolderIdOfObject($this->ref_id);
44 $role_list = $rbacreview->getRoleListByObject($role_folder_id);
45 foreach ($role_list as $role)
47 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
49 $a_rol_id = $role[
'obj_id'];
56 $user = $rbacadmin->assignUser($a_rol_id, $a_usr_id);
65 global $rbacreview, $rbacadmin;
67 $role_folder_id = $rbacreview->getRoleFolderIdOfObject($this->ref_id);
68 $role_list = $rbacreview->getRoleListByObject($role_folder_id);
69 foreach ($role_list as $role)
71 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
73 $a_rol_id = $role[
'obj_id'];
80 $user = $rbacadmin->deassignUser($a_rol_id, $a_usr_id);
91 $role_folder = $rbacreview->getRoleFolderOfObject($this->ref_id);
92 $roles = $rbacreview->getRoleListByObject($role_folder[
'child']);
93 foreach($roles as $role)
95 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
97 $assigned_users = $rbacreview->assignedUsers($role[
'rol_id']);
101 return is_array($assigned_users) ? $assigned_users : array();
109 $role_folder = $rbacreview->getRoleFolderOfObject($this->ref_id);
110 $roles = $rbacreview->getRoleListByObject($role_folder[
'child']);
111 foreach($roles as $role)
113 if(strpos($role[
'title'],
'il_frm_moderator') !==
false)
115 $assigned_users = $rbacreview->assignedUsers($role[
'rol_id']);
120 return is_array($assigned_users) ? $assigned_users : array();
detachModeratorRole($a_usr_id)
addModeratorRole($a_usr_id)