Class ilMailAddressTypeFactory.
More...
◆ getByPrefix()
static ilMailAddressTypeFactory::getByPrefix |
( |
ilMailAddress |
$a_address | ) |
|
|
static |
- Parameters
-
- Returns
- ilMailAddressType
Definition at line 14 of file class.ilMailAddressTypeFactory.php.
References ilMailAddress\getHost(), ilMailAddress\getMailbox(), ilUtil\groupNameExists(), and ilMail\ILIAS_HOST.
Referenced by ilMail\checkRecipients(), ilMail\getUserIds(), and ilMailAddressTypesTest\testFactoryShouldReturnShouldReturnProperAddressType().
18 case substr($a_address->
getMailbox(), 0, 1) !=
'#' && substr($a_address->
getMailbox(), 0, 2) !=
'"#':
19 require_once
'Services/Mail/classes/Address/Type/class.ilMailLoginOrEmailAddressAddressType.php';
23 case substr($a_address->
getMailbox(), 0, 7) ==
'#il_ml_':
24 require_once
'Services/Mail/classes/Address/Type/class.ilMailMailingListAddressType.php';
32 0 === strlen($a_address->
getHost())
35 require_once
'Services/Mail/classes/Address/Type/class.ilMailGroupAddressType.php';
40 require_once
'Services/Mail/classes/Address/Type/class.ilMailRoleAddressType.php';
Class ilMailMailingListAddressType.
static groupNameExists($a_group_name, $a_id=0)
checks if group name already exists.
Class ilMailRoleAddressType.
Class ilMailGroupAddressType.
Class ilMailLoginOrEmailAddressAddressType.
The documentation for this class was generated from the following file: