ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Class ilMailCachedAddressType. More...
Public Member Functions | |
__construct (protected ilMailAddressType $inner, protected bool $useCache) | |
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... | |
Static Public Member Functions | |
static | clearCache () |
Static Protected Attributes | |
static array | $usrIdsByAddressCache = [] |
static array | $isValidCache = [] |
Private Member Functions | |
getCacheKey () | |
Class ilMailCachedAddressType.
Definition at line 24 of file class.ilMailCachedAddressType.php.
ilMailCachedAddressType::__construct | ( | protected ilMailAddressType | $inner, |
protected bool | $useCache | ||
) |
Definition at line 31 of file class.ilMailCachedAddressType.php.
|
static |
Definition at line 35 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 63 of file class.ilMailCachedAddressType.php.
Referenced by getCacheKey().
|
private |
Definition at line 41 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 58 of file class.ilMailCachedAddressType.php.
ilMailCachedAddressType::resolve | ( | ) |
Returns an array of resolved user ids based on an address instance.
Implements ilMailAddressType.
Definition at line 68 of file class.ilMailCachedAddressType.php.
References getCacheKey().
ilMailCachedAddressType::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 47 of file class.ilMailCachedAddressType.php.
References getCacheKey().
|
staticprotected |
Definition at line 29 of file class.ilMailCachedAddressType.php.
|
staticprotected |
Definition at line 27 of file class.ilMailCachedAddressType.php.