ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMailPearRfc822WrapperAddressParser.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  public function parseAddressString(string $a_addresses) : array
14  {
15  if (strlen($a_addresses) == 0) {
16  return [];
17  }
18 
19  $parser = new \Mail_RFC822();
20  $parsed_addresses = $parser->parseAddressList($a_addresses, $this->installationHost, false, true);
21 
22  return array_map(function ($address) {
23  return new \ilMailAddress($address->mailbox, $address->host);
24  }, $parsed_addresses);
25  }
26 }
Class ilMailPearRfc822WrapperAddressParser.
Class ilBaseMailRfc822AddressParser.
$parser
Definition: BPMN2Parser.php:23