ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Public Member Functions | |
__construct (protected ilMailAddressTypeHelper $type_helper, protected ilMailAddress $address, protected ilLogger $logger) | |
validate (int $sender_id) | |
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 $sender_id) | |
pushError (string $language_variable, array $place_holder_values=[]) | |
Private Member Functions | |
resetErrors () | |
Private Attributes | |
array | $errors = [] |
Definition at line 21 of file class.ilBaseMailAddressType.php.
ilBaseMailAddressType::__construct | ( | protected ilMailAddressTypeHelper | $type_helper, |
protected ilMailAddress | $address, | ||
protected ilLogger | $logger | ||
) |
Definition at line 26 of file class.ilBaseMailAddressType.php.
References isValid().
ilBaseMailAddressType::getAddress | ( | ) |
The address instance used for validation and user id lookup.
Implements ilMailAddressType.
Definition at line 60 of file class.ilBaseMailAddressType.php.
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 55 of file class.ilBaseMailAddressType.php.
References $errors.
|
abstractprotected |
|
protected |
list<string> | $place_holder_values |
Definition at line 45 of file class.ilBaseMailAddressType.php.
Referenced by ilMailLoginOrEmailAddressAddressType\isValid(), ilMailMailingListAddressType\isValid(), and ilMailRoleAddressType\isValid().
|
private |
Definition at line 50 of file class.ilBaseMailAddressType.php.
Referenced by validate().
ilBaseMailAddressType::validate | ( | int | $sender_id | ) |
Validates the parsed recipients and set errors accordingly.
int | $sender_id | The id of the acting ILIAS user, can be used for permission checks etc. |
Implements ilMailAddressType.
Definition at line 35 of file class.ilBaseMailAddressType.php.
References isValid(), and resetErrors().
Referenced by ilMailAddressTypeFactory\getByPrefix().
|
private |
Definition at line 24 of file class.ilBaseMailAddressType.php.
Referenced by getErrors().