ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilMailPearRfc822WrapperAddressParser Class Reference

Class ilPearMailRfc822WrapperAddressParser. More...

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

Public Member Functions

 parseAddressString ($a_addresses)
 {} More...
 
- Public Member Functions inherited from ilBaseMailRfc822AddressParser
 __construct ($a_addresses)
 
 getAddresses ()
 
 setAddresses ($addresses)
 
 parse ()
 {
Returns
ilMailAddress[]
} More...
 

Additional Inherited Members

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

Detailed Description

Class ilPearMailRfc822WrapperAddressParser.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

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

Member Function Documentation

◆ parseAddressString()

ilMailPearRfc822WrapperAddressParser::parseAddressString (   $a_addresses)

{}

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

References $parser, array, and ilMail\ILIAS_HOST.

16  {
17  if(strlen($a_addresses) == 0)
18  {
19  return array();
20  }
21 
22  require_once 'Services/Mail/classes/class.ilMail.php';
23  require_once 'Services/Mail/classes/Address/Parser/RFC822.php';
24  $parser = new Mail_RFC822();
25  $parsed_addresses = $parser->parseAddressList($a_addresses, ilMail::ILIAS_HOST, false, true);
26 
27  require_once 'Services/Mail/classes/Address/class.ilMailAddress.php';
28  return array_map(function($address) {
29  return new ilMailAddress($address->mailbox, $address->host);
30  }, $parsed_addresses);
31  }
const ILIAS_HOST
Create styles array
The data for the language used.
$parser
Definition: BPMN2Parser.php:24
Class ilMailAddress.

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