ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMailRfc822AddressParserFactory.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{
14 public static function getParser($a_address)
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 }
31}
An exception for terminatinating execution or to throw for unit testing.
Class ilMailRfc822AddressParserFactory.
Class ilMailRfc822AddressParser.