ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilRoleMailboxSearch. More...
Public Member Functions | |
__construct (\ilMailRfc822AddressParserFactory $parserFactory, \ilDBInterface $db=null) | |
ilRoleMailboxSearch constructor. More... | |
searchRoleIdsByAddressString (string $a_address_list) | |
Finds all role ids that match the specified user friendly role mailbox address list. More... | |
Protected Attributes | |
$parserFactory | |
$db | |
Class ilRoleMailboxSearch.
Definition at line 10 of file class.ilRoleMailboxSearch.php.
ilRoleMailboxSearch::__construct | ( | \ilMailRfc822AddressParserFactory | $parserFactory, |
\ilDBInterface | $db = null |
||
) |
ilRoleMailboxSearch constructor.
\ilMailRfc822AddressParserFactory | $parserFactory | |
\ilDBInterface | null | $db |
Definition at line 23 of file class.ilRoleMailboxSearch.php.
References $db, $DIC, and $parserFactory.
ilRoleMailboxSearch::searchRoleIdsByAddressString | ( | string | $a_address_list | ) |
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
string | $a_address_list |
Definition at line 80 of file class.ilRoleMailboxSearch.php.
References $domain, $parser, $query, $res, $row, and ilMail\ILIAS_HOST.
|
protected |
Definition at line 16 of file class.ilRoleMailboxSearch.php.
Referenced by __construct().
|
protected |
Definition at line 13 of file class.ilRoleMailboxSearch.php.
Referenced by __construct().