19 declare(strict_types=1);
34 $this->
lng = $DIC[
'lng'];
35 $this->rbacreview = $DIC[
'rbacreview'];
41 return $this->
lng->txt(
'mail_roles');
46 $role_ids = $this->rbacreview->getLocalRoles($ref_id);
48 $sorted_role_ids = [];
51 foreach ($role_ids as $role_id) {
54 $mailbox = $this->
lng->txt(
'il_sess_participant') .
' <#' . $role_title .
'>';
56 $role_prefix = substr($role_title, 0, 12);
57 if ($role_prefix ===
'il_sess_part') {
58 $sorted_role_ids[1][
'default_checked'] =
true;
59 $sorted_role_ids[1][
'role_id'] = $role_id;
60 $sorted_role_ids[1][
'mailbox'] = $mailbox;
61 $sorted_role_ids[1][
'form_option_title'] = $this->
lng->txt(
'send_mail_participants');
64 ksort($sorted_role_ids, SORT_NUMERIC);
66 return $sorted_role_ids;
Class ilMailMemberSessionRoles.
getMailRoles(int $ref_id)
static _lookupTitle(int $obj_id)
Class ilAbstractMailMemberRoles.