19 declare(strict_types=1);
38 string $installationHost,
48 $addresses = $this->origin->value();
50 $filteredAddresses = array_filter($addresses,
function (
ilMailAddress $address):
bool {
52 if (
$c((
string) $address)) {
61 if (strpos($address->getMailbox(),
'#') === 0) {
68 return $filteredAddresses;
Class ilMailOnlyExternalAddressList.
ilMailAddressList $origin
Interface ilMailAddressList.
__construct(ilMailAddressList $origin, string $installationHost, callable $getUsrIdByLoginCallable)