4 require_once
'Services/Contact/classes/class.ilAbstractMailMemberRoles.php';
29 $this->lng = $DIC[
'lng'];
30 $this->rbacreview = $DIC[
'rbacreview'];
38 return $this->lng->txt(
'mail_crs_roles');
47 $role_ids = $this->rbacreview->getLocalRoles(
$ref_id);
50 $sorted_role_ids =
array();
53 foreach($role_ids as $role_id)
58 switch(substr($role_title, 0, 8))
61 $sorted_role_ids[2][
'role_id'] = $role_id;
62 $sorted_role_ids[2][
'mailbox'] = $mailbox;
63 $sorted_role_ids[2][
'form_option_title'] = $this->lng->txt(
'send_mail_admins');
67 $sorted_role_ids[1][
'role_id'] = $role_id;
68 $sorted_role_ids[1][
'mailbox'] = $mailbox;
69 $sorted_role_ids[1][
'form_option_title'] = $this->lng->txt(
'send_mail_tutors');
73 $sorted_role_ids[0][
'role_id'] = $role_id;
74 $sorted_role_ids[0][
'mailbox'] = $mailbox;
75 $sorted_role_ids[0][
'form_option_title'] = $this->lng->txt(
'send_mail_members');
79 $sorted_role_ids[
$counter][
'role_id'] = $role_id;
80 $sorted_role_ids[
$counter][
'mailbox'] = $mailbox;
81 $sorted_role_ids[
$counter][
'form_option_title'] = $role_title;
87 ksort($sorted_role_ids, SORT_NUMERIC);
89 return $sorted_role_ids;
getMailboxRoleAddress($role_id)
__construct()
ilMailMemberCourseRoles constructor.
static _lookupTitle($a_id)
lookup object title
Class ilMailMemberCourseRoles.
Create styles array
The data for the language used.
Class ilAbstractMailMemberRoles.