ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBaseMailRfc822AddressParser.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(protected string $addresses, protected string $installation_host = ilMail::ILIAS_HOST)
24 {
25 }
26
27 public function getAddresses(): string
28 {
29 return $this->addresses;
30 }
31
35 abstract protected function parseAddressString(string $addresses): array;
36
37 public function parse(): array
38 {
39 $addresses = preg_replace('/;/', ',', trim($this->addresses));
40
41 return $this->parseAddressString($addresses);
42 }
43}
parseAddressString(string $addresses)
__construct(protected string $addresses, protected string $installation_host=ilMail::ILIAS_HOST)
const string ILIAS_HOST