21 $this->db = $DIC->database();
22 $this->rbac = $DIC->rbac();
23 $this->ref_id = $a_ref_id;
48 $role_list = $this->rbac->review()->getRoleListByObject($this->
getRefId());
49 foreach ($role_list as $role) {
50 if (strpos($role[
'title'],
'il_frm_moderator') !==
false) {
51 $a_rol_id = $role[
'obj_id'];
56 if ((
int) $a_rol_id) {
57 $user = $this->rbac->admin()->assignUser($a_rol_id, $a_usr_id);
70 $role_list = $this->rbac->review()->getRoleListByObject($this->
getRefId());
71 foreach ($role_list as $role) {
72 if (strpos($role[
'title'],
'il_frm_moderator') !==
false) {
73 $a_rol_id = $role[
'obj_id'];
78 if ((
int) $a_rol_id) {
79 $user = $this->rbac->admin()->deassignUser($a_rol_id, $a_usr_id);
91 $roles = $this->rbac->review()->getRoleListByObject($this->
getRefId());
92 foreach ($roles as $role) {
93 if (strpos($role[
'title'],
'il_frm_moderator') !==
false) {
94 $assigned_users = $this->rbac->review()->assignedUsers($role[
'rol_id']);
98 return is_array($assigned_users) ? $assigned_users :
array();
106 $roles = $this->rbac->review()->getRoleListByObject($this->
getRefId());
107 foreach ($roles as $role) {
108 if (strpos($role[
'title'],
'il_frm_moderator') !==
false) {
109 $assigned_users = $this->rbac->review()->assignedUsers($role[
'rol_id']);
114 return is_array($assigned_users) ? $assigned_users :
array();
detachModeratorRole($a_usr_id)
Create styles array
The data for the language used.
addModeratorRole($a_usr_id)