ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Class ilBaseMailAddressType. More...
Public Member Functions | |
__construct (protected ilMailAddressTypeHelper $typeHelper, protected ilMailAddress $address, protected 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=[]) | |
Private Member Functions | |
resetErrors () | |
Private Attributes | |
array | $errors = [] |
Class ilBaseMailAddressType.
Definition at line 25 of file class.ilBaseMailAddressType.php.
ilBaseMailAddressType::__construct | ( | protected ilMailAddressTypeHelper | $typeHelper, |
protected ilMailAddress | $address, | ||
protected ilLogger | $logger | ||
) |
Definition at line 30 of file class.ilBaseMailAddressType.php.
References isValid().
ilBaseMailAddressType::getAddress | ( | ) |
The address instance used for validation and user id lookup.
Implements ilMailAddressType.
Definition at line 64 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 59 of file class.ilBaseMailAddressType.php.
References $errors.
|
abstractprotected |
|
protected |
string[] | $placeHolderValues |
Definition at line 49 of file class.ilBaseMailAddressType.php.
Referenced by ilMailLoginOrEmailAddressAddressType\isValid(), ilMailMailingListAddressType\isValid(), and ilMailRoleAddressType\isValid().
|
private |
Definition at line 54 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 39 of file class.ilBaseMailAddressType.php.
References isValid(), and resetErrors().
Referenced by ilMailAddressTypeFactory\getByPrefix().
|
private |
Definition at line 28 of file class.ilBaseMailAddressType.php.
Referenced by getErrors().