ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Public Member Functions | |
__construct (protected ilMailAddressType $inner, protected bool $use_cache) | |
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... | |
Static Public Member Functions | |
static | clearCache () |
Static Protected Attributes | |
static array | $usr_ids_by_address_cache = [] |
static array | $is_valid_cache = [] |
Private Member Functions | |
getCacheKey () | |
Definition at line 21 of file class.ilMailCachedAddressType.php.
ilMailCachedAddressType::__construct | ( | protected ilMailAddressType | $inner, |
protected bool | $use_cache | ||
) |
Definition at line 28 of file class.ilMailCachedAddressType.php.
|
static |
Definition at line 32 of file class.ilMailCachedAddressType.php.
Referenced by ilMailAddressTypesTest\setUp().
ilMailCachedAddressType::getAddress | ( | ) |
The address instance used for validation and user id lookup.
Implements ilMailAddressType.
Definition at line 59 of file class.ilMailCachedAddressType.php.
Referenced by getCacheKey().
|
private |
Definition at line 38 of file class.ilMailCachedAddressType.php.
References getAddress().
Referenced by resolve(), and validate().
ilMailCachedAddressType::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 54 of file class.ilMailCachedAddressType.php.
ilMailCachedAddressType::resolve | ( | ) |
Returns an array of resolved user ids based on an address instance.
Implements ilMailAddressType.
Definition at line 64 of file class.ilMailCachedAddressType.php.
References getCacheKey().
ilMailCachedAddressType::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 44 of file class.ilMailCachedAddressType.php.
References getCacheKey().
|
staticprotected |
Definition at line 26 of file class.ilMailCachedAddressType.php.
|
staticprotected |
Definition at line 24 of file class.ilMailCachedAddressType.php.