19declare(strict_types=1);
51 $groupName = substr($address->
getMailbox(), 1);
59 return (
$host === $this->host ||
$host ===
'');
Class ilGroupNameAsMailValidator.
validate(ilMailAddress $address)
Validates if the given address contains a valid group name to send an email.
__construct(string $host, callable $groupNameCheckCallable=null)
isHostValid(string $host)
static groupNameExists(string $a_group_name, ?int $a_id=null)
checks if group name already exists.