ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Class ilRoleMailboxAddress. More...
Public Member Functions | |
__construct (protected int $roleId, protected bool $localize=true, ?ilMailRfc822AddressParserFactory $parserFactory=null, ?ilDBInterface $db=null, ?ilLanguage $lng=null) | |
value () | |
Returns the mailbox address of a role. More... | |
Protected Attributes | |
ilMailRfc822AddressParserFactory | $parserFactory |
ilDBInterface | $db |
ilLanguage | $lng |
Class ilRoleMailboxAddress.
Definition at line 27 of file class.ilRoleMailboxAddress.php.
ilRoleMailboxAddress::__construct | ( | protected int | $roleId, |
protected bool | $localize = true , |
||
?ilMailRfc822AddressParserFactory | $parserFactory = null , |
||
?ilDBInterface | $db = null , |
||
?ilLanguage | $lng = null |
||
) |
Definition at line 33 of file class.ilRoleMailboxAddress.php.
References $db, $DIC, $lng, $parserFactory, ILIAS\Repository\lng(), and null.
ilRoleMailboxAddress::value | ( | ) |
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.
Definition at line 116 of file class.ilRoleMailboxAddress.php.
References $q, $res, ILIAS\Repository\int(), ILIAS\Repository\lng(), and null.
|
protected |
Definition at line 30 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().
|
protected |
Definition at line 31 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().