ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilRoleMailboxAddress. More...
Public Member Functions | |
__construct (int $roleId, bool $localize=true, \ilMailRfc822AddressParserFactory $parserFactory=null, \ilDBInterface $db=null, \ilLanguage $lng=null) | |
ilRoleMailboxAddress constructor. More... | |
value () | |
Returns the mailbox address of a role. More... | |
Protected Attributes | |
$roleId | |
$localize = true | |
$parserFactory | |
$db | |
$lng | |
Class ilRoleMailboxAddress.
Definition at line 10 of file class.ilRoleMailboxAddress.php.
ilRoleMailboxAddress::__construct | ( | int | $roleId, |
bool | $localize = true , |
||
\ilMailRfc822AddressParserFactory | $parserFactory = null , |
||
\ilDBInterface | $db = null , |
||
\ilLanguage | $lng = null |
||
) |
ilRoleMailboxAddress constructor.
int | $roleId | |
bool | $localize | A boolean flag whether mailbox addresses should be localized |
\ilMailRfc822AddressParserFactory | null | $parserFactory | |
\ilDBInterface | null | $db | |
\ilLanguage | null | $lng |
Definition at line 35 of file class.ilRoleMailboxAddress.php.
References $db, $DIC, $lng, $localize, $parserFactory, and $roleId.
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 121 of file class.ilRoleMailboxAddress.php.
References $domain, $parser, $query, $res, $roleId, and $row.
|
protected |
Definition at line 22 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().
|
protected |
Definition at line 16 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().
|
protected |
Definition at line 19 of file class.ilRoleMailboxAddress.php.
Referenced by __construct().
|
protected |
Definition at line 13 of file class.ilRoleMailboxAddress.php.
Referenced by __construct(), and value().