ILIAS
release_8 Revision v8.19
|
Class ilBaseMailAddressType. More...
Public Member Functions | |
__construct (ilMailAddressTypeHelper $typeHelper, ilMailAddress $address, ilLogger $logger) | |
validate (int $senderId) | |
Validates the parsed recipients and set errors accordingly. More... | |
getErrors () | |
Returns a list of errors determined in the validation process. More... | |
getAddress () | |
The address instance used for validation and user id lookup. More... | |
![]() | |
resolve () | |
Returns an array of resolved user ids based on an address instance. More... | |
Protected Member Functions | |
isValid (int $senderId) | |
pushError (string $languageVariable, array $placeHolderValues=[]) | |
Protected Attributes | |
ilMailAddressTypeHelper | $typeHelper |
ilMailAddress | $address |
ilLogger | $logger |
Private Member Functions | |
resetErrors () | |
Private Attributes | |
array | $errors = [] |
Class ilBaseMailAddressType.
Definition at line 25 of file class.ilBaseMailAddressType.php.
ilBaseMailAddressType::__construct | ( | ilMailAddressTypeHelper | $typeHelper, |
ilMailAddress | $address, | ||
ilLogger | $logger | ||
) |
Definition at line 33 of file class.ilBaseMailAddressType.php.
References $address, $logger, $typeHelper, isValid(), and ILIAS\Repository\logger().
ilBaseMailAddressType::getAddress | ( | ) |
The address instance used for validation and user id lookup.
Implements ilMailAddressType.
Definition at line 67 of file class.ilBaseMailAddressType.php.
References $address.
ilBaseMailAddressType::getErrors | ( | ) |
Returns a list of errors determined in the validation process.
The errors should be reset everytime the validation is triggered.
Implements ilMailAddressType.
Definition at line 62 of file class.ilBaseMailAddressType.php.
References $errors.
|
abstractprotected |
|
protected |
Definition at line 52 of file class.ilBaseMailAddressType.php.
Referenced by ilMailLoginOrEmailAddressAddressType\isValid(), ilMailMailingListAddressType\isValid(), and ilMailRoleAddressType\isValid().
|
private |
Definition at line 57 of file class.ilBaseMailAddressType.php.
Referenced by validate().
ilBaseMailAddressType::validate | ( | int | $senderId | ) |
Validates the parsed recipients and set errors accordingly.
int | $senderId | The id of the acting ILIAS user, can be used for permission checks etc. |
Implements ilMailAddressType.
Definition at line 45 of file class.ilBaseMailAddressType.php.
References isValid(), and resetErrors().
|
protected |
Definition at line 28 of file class.ilBaseMailAddressType.php.
Referenced by __construct(), getAddress(), and ilMailLoginOrEmailAddressAddressType\resolve().
|
private |
Definition at line 31 of file class.ilBaseMailAddressType.php.
Referenced by getErrors().
|
protected |
Definition at line 29 of file class.ilBaseMailAddressType.php.
Referenced by __construct().
|
protected |
Definition at line 27 of file class.ilBaseMailAddressType.php.
Referenced by __construct().