ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilBaseMailAddressType. More...
Public Member Functions | |||
__construct (\ilMailAddressTypeHelper $typeHelper, \ilMailAddress $address, \ilLogger $logger) | |||
ilBaseMailAddressType constructor. More... | |||
validate (int $senderId) | |||
Validates the parsed recipients and set errors accordingly.
| |||
getErrors () | |||
Returns a list of errors determined in the validation process.The errors should be reset everytime the validation is triggered.
| |||
getAddress () | |||
The address instance used for validation and user id lookup.
| |||
Public Member Functions inherited from ilMailAddressType | |||
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 | |
$typeHelper | |
$address | |
$logger | |
Private Member Functions | |
resetErrors () | |
Private Attributes | |
$errors = [] | |
Class ilBaseMailAddressType.
Definition at line 8 of file class.ilBaseMailAddressType.php.
ilBaseMailAddressType::__construct | ( | \ilMailAddressTypeHelper | $typeHelper, |
\ilMailAddress | $address, | ||
\ilLogger | $logger | ||
) |
ilBaseMailAddressType constructor.
\ilMailAddressTypeHelper | $typeHelper | |
\ilMailAddress | $address | |
\ilLogger | $logger |
Definition at line 28 of file class.ilBaseMailAddressType.php.
References $address, $logger, $typeHelper, and isValid().
ilBaseMailAddressType::getAddress | ( | ) |
The address instance used for validation and user id lookup.
Implements ilMailAddressType.
Definition at line 82 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 74 of file class.ilBaseMailAddressType.php.
References $errors.
|
abstractprotected |
$senderId | integer |
Referenced by __construct(), and validate().
|
protected |
string | $languageVariable | |
array | $placeHolderValues |
Definition at line 58 of file class.ilBaseMailAddressType.php.
Referenced by ilMailLoginOrEmailAddressAddressType\isValid(), ilMailMailingListAddressType\isValid(), and ilMailRoleAddressType\isValid().
|
private |
Definition at line 66 of file class.ilBaseMailAddressType.php.
Referenced by validate().
ilBaseMailAddressType::validate | ( | int | $senderId | ) |
Validates the parsed recipients and set errors accordingly.
$senderId | integer The id of the acting ILIAS user, can be used for permission checks etc. |
Implements ilMailAddressType.
Definition at line 47 of file class.ilBaseMailAddressType.php.
References isValid(), and resetErrors().
|
protected |
Definition at line 14 of file class.ilBaseMailAddressType.php.
Referenced by __construct(), getAddress(), and ilMailLoginOrEmailAddressAddressType\resolve().
|
private |
Definition at line 20 of file class.ilBaseMailAddressType.php.
Referenced by getErrors().
|
protected |
Definition at line 17 of file class.ilBaseMailAddressType.php.
Referenced by __construct().
|
protected |
Definition at line 11 of file class.ilBaseMailAddressType.php.
Referenced by __construct().