ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilMailCachedAddressType. More...
Public Member Functions | |||
__construct (\ilMailAddressType $inner, bool $useCache) | |||
ilMailCachedRoleAddressType 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.
| |||
resolve () | |||
Returns an array of resolved user ids based on an address instance.
| |||
Protected Attributes | |
$inner | |
$useCache = true | |
Static Protected Attributes | |
static | $usrIdsByAddressCache = [] |
static | $isValidCache = [] |
Private Member Functions | |
getCacheKey () | |
Class ilMailCachedAddressType.
Definition at line 7 of file class.ilMailCachedAddressType.php.
ilMailCachedAddressType::__construct | ( | \ilMailAddressType | $inner, |
bool | $useCache | ||
) |
ilMailCachedRoleAddressType constructor.
\ilMailAddressType | $inner | |
bool | $useCache |
Definition at line 26 of file class.ilMailCachedAddressType.php.
References $inner, and $useCache.
ilMailCachedAddressType::getAddress | ( | ) |
The address instance used for validation and user id lookup.
Implements ilMailAddressType.
Definition at line 66 of file class.ilMailCachedAddressType.php.
Referenced by getCacheKey().
|
private |
Definition at line 35 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 74 of file class.ilMailCachedAddressType.php.
References getCacheKey().
ilMailCachedAddressType::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 44 of file class.ilMailCachedAddressType.php.
References getCacheKey().
|
protected |
Definition at line 16 of file class.ilMailCachedAddressType.php.
Referenced by __construct().
|
staticprotected |
Definition at line 13 of file class.ilMailCachedAddressType.php.
|
protected |
Definition at line 19 of file class.ilMailCachedAddressType.php.
Referenced by __construct().
|
staticprotected |
Definition at line 10 of file class.ilMailCachedAddressType.php.