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

Class ilBaseMailRfc822AddressParser. More...

+ Inheritance diagram for ilBaseMailRfc822AddressParser:
+ Collaboration diagram for ilBaseMailRfc822AddressParser:

Public Member Functions

 __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...
 

Protected Member Functions

 parseAddressString (string $a_addresses)
 

Protected Attributes

 $addresses = ''
 
 $installationHost = ''
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilBaseMailRfc822AddressParser::__construct ( string  $a_addresses,
string  $installationHost = \ilMail::ILIAS_HOST 
)
Parameters
string$a_addressesA comma separated list of email addresses
string$installationHost

Definition at line 20 of file class.ilBaseMailRfc822AddressParser.php.

References $installationHost.

21  {
22  $this->addresses = $a_addresses;
23  $this->installationHost = $installationHost;
24  }

Member Function Documentation

◆ getAddresses()

ilBaseMailRfc822AddressParser::getAddresses ( )
Returns
string

Definition at line 29 of file class.ilBaseMailRfc822AddressParser.php.

References $addresses.

Referenced by ilMailRfc822AddressParser\__construct().

+ Here is the caller graph for this function:

◆ parse()

ilBaseMailRfc822AddressParser::parse ( )

Returns
ilMailAddress[]

Implements ilMailRecipientParser.

Definition at line 52 of file class.ilBaseMailRfc822AddressParser.php.

References $addresses, and parseAddressString().

52  : array
53  {
54  $addresses = preg_replace('/;/', ',', trim($this->addresses));
55 
56  return $this->parseAddressString($addresses);
57  }
parseAddressString(string $a_addresses)
+ Here is the call graph for this function:

◆ parseAddressString()

ilBaseMailRfc822AddressParser::parseAddressString ( string  $a_addresses)
abstractprotected
Parameters
string$a_addressesA comma separated list of email addresses
Returns
[]

Referenced by parse(), and setAddresses().

+ Here is the caller graph for this function:

◆ setAddresses()

ilBaseMailRfc822AddressParser::setAddresses ( string  $addresses)

A comma separated list of email addresses.

Parameters
string$addresses

Definition at line 38 of file class.ilBaseMailRfc822AddressParser.php.

References $addresses, and parseAddressString().

39  {
40  $this->addresses = $addresses;
41  }
+ Here is the call graph for this function:

Field Documentation

◆ $addresses

ilBaseMailRfc822AddressParser::$addresses = ''
protected

Definition at line 11 of file class.ilBaseMailRfc822AddressParser.php.

Referenced by getAddresses(), parse(), and setAddresses().

◆ $installationHost

ilBaseMailRfc822AddressParser::$installationHost = ''
protected

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

Referenced by __construct().


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