ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilBaseMailRfc822AddressParser Class Reference

Class ilBaseMailRfc822AddressParser. More...

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

Public Member Functions

 __construct ($a_addresses)
 
 getAddresses ()
 
 setAddresses ($addresses)
 
 parse ()
 {
Returns
ilMailAddress[]
} More...
 

Protected Member Functions

 parseAddressString ($a_addresses)
 

Protected Attributes

 $addresses = ''
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilBaseMailRfc822AddressParser::__construct (   $a_addresses)
Parameters
string$a_addresses

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

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

Member Function Documentation

◆ getAddresses()

ilBaseMailRfc822AddressParser::getAddresses ( )
Returns
string

Definition at line 28 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 50 of file class.ilBaseMailRfc822AddressParser.php.

References $addresses, and parseAddressString().

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

◆ parseAddressString()

ilBaseMailRfc822AddressParser::parseAddressString (   $a_addresses)
abstractprotected
Parameters
string$a_addresses
Returns
ilMailAddress[]

Referenced by parse(), and setAddresses().

+ Here is the caller graph for this function:

◆ setAddresses()

ilBaseMailRfc822AddressParser::setAddresses (   $addresses)
Parameters
string$addresses

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

References $addresses, and parseAddressString().

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

Field Documentation

◆ $addresses

ilBaseMailRfc822AddressParser::$addresses = ''
protected

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

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


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