ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailPearRfc822WrapperAddressParser Class Reference

Class ilMailPearRfc822WrapperAddressParser. More...

+ Inheritance diagram for ilMailPearRfc822WrapperAddressParser:
+ Collaboration diagram for ilMailPearRfc822WrapperAddressParser:

Public Member Functions

 parseAddressString (string $a_addresses)
 
- Public Member Functions inherited from ilBaseMailRfc822AddressParser
 __construct (string $a_addresses, string $installationHost=\ilMail::ILIAS_HOST)
 
 getAddresses ()
 
 setAddresses (string $addresses)
 A comma separated list of email addresses. More...
 
 parse ()
 
Returns
ilMailAddress[]
More...
 

Additional Inherited Members

- Protected Member Functions inherited from ilBaseMailRfc822AddressParser
 parseAddressString (string $a_addresses)
 
- Protected Attributes inherited from ilBaseMailRfc822AddressParser
 $addresses = ''
 
 $installationHost = ''
 

Detailed Description

Member Function Documentation

◆ parseAddressString()

ilMailPearRfc822WrapperAddressParser::parseAddressString ( string  $a_addresses)

Definition at line 13 of file class.ilMailPearRfc822WrapperAddressParser.php.

References $parser.

13  : 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  }
$parser
Definition: BPMN2Parser.php:23

The documentation for this class was generated from the following file: