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