ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilGroupNameAsMailValidator. More...
Public Member Functions | |
__construct (string $host, callable $groupNameCheckCallable=null) | |
validate (\ilMailAddress $address) | |
Validates if the given address contains a valid group name to send an email. More... | |
Protected Attributes | |
$host | |
$groupNameCheckCallable | |
Private Member Functions | |
isHostValid (string $host) | |
Checks if the given host is valid in the email context. More... | |
Class ilGroupNameAsMailValidator.
Definition at line 9 of file class.ilGroupNameAsMailValidator.php.
ilGroupNameAsMailValidator::__construct | ( | string | $host, |
callable | $groupNameCheckCallable = null |
||
) |
string | $host | |
callable | null | $groupNameCheckCallable |
Definition at line 21 of file class.ilGroupNameAsMailValidator.php.
References $groupNameCheckCallable, and $host.
|
private |
Checks if the given host is valid in the email context.
string | $host |
Definition at line 56 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.
\ilMailAddress | $address |
Definition at line 39 of file class.ilGroupNameAsMailValidator.php.
References $groupNameCheckCallable, ilMailAddress\getHost(), ilMailAddress\getMailbox(), and isHostValid().
|
protected |
Definition at line 15 of file class.ilGroupNameAsMailValidator.php.
Referenced by __construct(), and validate().
|
protected |
Definition at line 12 of file class.ilGroupNameAsMailValidator.php.
Referenced by __construct().