ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilBaseMailRfc822AddressParser.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
__construct(protected string $addresses, protected string $installation_host=ilMail::ILIAS_HOST)
parseAddressString(string $addresses)
const string ILIAS_HOST