ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilMailRoleAddressType. More...
Public Member Functions | |||
isValid ($a_sender_id) | |||
{} More... | |||
resolve () | |||
{Returns an array of resolved user ids.
| |||
![]() | |||
__construct (\ilMailAddress $a_address) | |||
ilBaseMailAddressType constructor. More... | |||
validate ($a_sender_id) | |||
{
| |||
getErrors () | |||
Static Public Member Functions | |
static | searchRolesByMailboxAddressList ( $a_address_list, ilMailRfc822AddressParserFactory $parserFactory=null, ilMailRfc822AddressParser $parser=null) |
Finds all role ids that match the specified user friendly role mailbox address list. More... | |
static | getRoleMailboxAddress ( $a_role_id, $is_localize=true, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null) |
Returns the mailbox address of a role. More... | |
Protected Member Functions | |
maySendToGlobalRole ($a_sender_id) | |
![]() | |
init () | |
isValid ($a_sender_id) | |
Static Protected Member Functions | |
static | getRoleIdsByAddress (ilMailAddress $a_address) |
Static Protected Attributes | |
static | $role_ids_by_address = array() |
static | $may_send_to_global_roles = array() |
Additional Inherited Members | |
![]() | |
$address | |
$rbacsystem | |
$rbacreview | |
$errors = array() | |
Class ilMailRoleAddressType.
Definition at line 13 of file class.ilMailRoleAddressType.php.
|
staticprotected |
ilMailAddress | $a_address |
Definition at line 29 of file class.ilMailRoleAddressType.php.
References ilBaseMailAddressType\$address, ilMailAddress\getHost(), and ilMailAddress\getMailbox().
|
static |
Returns the mailbox address of a role.
The il_crs_member_345 role of the course object "English Course 1" is returned as one of the following mailbox addresses:
a) Course Member <#member@[English Course 1]> b) Course Member <#il_crs_member_345@[English Course 1]> c) Course Member <#il_crs_member_345>
Address a) is returned, if the title of the object is unique, and if there is only one local role with the substring "member" defined for the object.
Address b) is returned, if the title of the object is unique, but there is more than one local role with the substring "member" in its title.
Address c) is returned, if the title of the course object is not unique.
The "Admin" role of the category object "Courses" is returned as one of the following mailbox addresses:
a) Course Administrator <#Admin> b) Course Administrator <#Admin> c) Course Adminstrator <#il_role_34211>
Address a) is returned, if the title of the object is unique, and if there is only one local role with the substring "Admin" defined for the course object.
Address b) is returned, if the title of the object is not unique, but the role title is unique.
Address c) is returned, if neither the role title nor the title of the course object is unique.
Example 3: Mailbox address for a manually defined role title that can contains special characters in the local-part of a
The "Author Courses" role of the category object "Courses" is returned as one of the following mailbox addresses:
a) "#Author Courses" b) Author Courses <#il_role_34234>
Address a) is returned, if the title of the role is unique.
Address b) is returned, if neither the role title nor the title of the course object is unique, or if the role title contains a quote or a backslash.
$a_role_id | ||
bool | $is_localize | is_localize whether mailbox addresses should be localized |
ilMailRfc822AddressParserFactory | null | $mailAddressParserFactory |
Definition at line 357 of file class.ilMailRoleAddressType.php.
References $DIC, $domain, $parser, $query, $res, and $row.
Referenced by ilAbstractMailMemberRoles\getMailboxRoleAddress(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilMailSearchCoursesGUI\mailCourses(), ilMailSearchGroupsGUI\mailGroups(), and ilObjRoleGUI\mailToRoleObject().
ilMailRoleAddressType::isValid | ( | $a_sender_id | ) |
{}
Definition at line 65 of file class.ilMailRoleAddressType.php.
References array.
|
protected |
int | $a_sender_id |
Definition at line 44 of file class.ilMailRoleAddressType.php.
References ilMailGlobalServices\getMailObjectRefId().
ilMailRoleAddressType::resolve | ( | ) |
{Returns an array of resolved user ids.
Implements ilMailAddressType.
Definition at line 91 of file class.ilMailRoleAddressType.php.
References array, and ilLoggerFactory\getLogger().
|
static |
Finds all role ids that match the specified user friendly role mailbox address list.
The role mailbox name address list is an e-mail address list according to IETF RFC 822:
address list = role mailbox, {"," role mailbox } ; role mailbox = "#", local part, ["@" domain] ;
Examples: The following role mailbox names are all resolved to the role il_crs_member_123:
#Course.A #member.A #il_crs_member_123.A #il_crs_member_123 #il_crs_member_123
Examples: The following role mailbox names are all resolved to the role il_crs_member_345:
#member@[English Course] #il_crs_member_345@[English Course] #il_crs_member_345 #il_crs_member_345
If only the local part is specified, or if domain is equal to "ilias", ILIAS compares the title of role objects with local part. Only roles that are not in a trash folder are considered for the comparison.
If a domain is specified, and if the domain is not equal to "ilias", ILIAS compares the title of objects with the domain. Only objects that are not in a trash folder are considered for the comparison. Then ILIAS searches for local roles which contain the local part in their title. This allows for abbreviated role names, e.g. instead of having to specify #il_grp_member_345, it is sufficient to specify #member.
The address list may contain addresses thate are not role mailboxes. These addresses are ignored.
If a role mailbox address is ambiguous, this function returns the ID's of all role objects that are possible recipients for the role mailbox address.
If Pear Mail is not installed, then the mailbox address
$a_address_list | ||
ilMailRfc822AddressParserFactory | null | $parserFactory | |
ilMailRfc822AddressParser | null | $parser |
Definition at line 179 of file class.ilMailRoleAddressType.php.
References ilBaseMailAddressType\$address, $DIC, $domain, $parser, $query, $res, $row, array, and ilMail\ILIAS_HOST.
Referenced by ilObjUserFolderGUI\importUserRoleAssignmentObject().
|
staticprotected |
Definition at line 23 of file class.ilMailRoleAddressType.php.
|
staticprotected |
Definition at line 18 of file class.ilMailRoleAddressType.php.