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

Class ilMailRfc822AddressParserFactory. More...

+ Collaboration diagram for ilMailRfc822AddressParserFactory:

Static Public Member Functions

static getParser ($a_address)
 

Detailed Description

Member Function Documentation

◆ getParser()

static ilMailRfc822AddressParserFactory::getParser (   $a_address)
static
Parameters
string$a_address
Returns
ilMailRecipientParser

Definition at line 14 of file class.ilMailRfc822AddressParserFactory.php.

Referenced by ilMailRoleAddressType\getRoleIdsByAddress(), ilUtil\is_email(), and ilMail\parseAddresses().

15  {
16  switch(true)
17  {
18  // imap_rfc822_parse_adrlist currently not used because we cannot determine which of the addresses in the recipient string is faulty
19 // case function_exists('imap_rfc822_parse_adrlist'):
20 // require_once 'Services/Mail/classes/Address/Parser/class.ilMailImapRfc822AddressParser.php';
21 // return new ilMailImapRfc822AddressParser($a_address);
22 // break;
23 
24  default:
25  require_once 'Services/Mail/classes/Address/Parser/class.ilMailPearRfc822WrapperAddressParser.php';
26  require_once 'Services/Mail/classes/Address/Parser/class.ilMailRfc822AddressParser.php';
28  break;
29  }
30  }
Class ilMailRfc822AddressParser.
+ Here is the caller graph for this function:

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