1<?
php declare(strict_types=1);
41 $groupName = substr($address->
getMailbox(), 1);
58 return (
$host == $this->host || 0 === strlen(
$host));
An exception for terminatinating execution or to throw for unit testing.
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)
Checks if the given host is valid in the email context.
static groupNameExists($a_group_name, $a_id=0)
checks if group name already exists.