ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Public Member Functions | |
__construct (protected string $host, ?callable $group_name_check_callable=null) | |
validate (ilMailAddress $address) | |
Validates if the given address contains a valid group name to send an email. More... | |
Protected Attributes | |
$group_name_check_callable | |
Private Member Functions | |
isHostValid (string $host) | |
Definition at line 21 of file class.ilGroupNameAsMailValidator.php.
ilGroupNameAsMailValidator::__construct | ( | protected string | $host, |
?callable | $group_name_check_callable = null |
||
) |
callable(string) | bool|null $group_name_check_callable |
Definition at line 29 of file class.ilGroupNameAsMailValidator.php.
References $group_name_check_callable, and ilUtil\groupNameExists().
|
private |
Definition at line 45 of file class.ilGroupNameAsMailValidator.php.
Referenced by validate().
ilGroupNameAsMailValidator::validate | ( | ilMailAddress | $address | ) |
Validates if the given address contains a valid group name to send an email.
Definition at line 37 of file class.ilGroupNameAsMailValidator.php.
References $group_name_check_callable, ilMailAddress\getHost(), ilMailAddress\getMailbox(), and isHostValid().
|
protected |
Definition at line 24 of file class.ilGroupNameAsMailValidator.php.
Referenced by __construct(), and validate().