ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilBaseMailRfc822AddressParser.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Mail/interfaces/interface.ilMailRecipientParser.php';
5 
11 {
15  protected $addresses = '';
16 
20  public function __construct($a_addresses)
21  {
22  $this->addresses = $a_addresses;
23  }
24 
28  public function getAddresses()
29  {
30  return $this->addresses;
31  }
32 
36  public function setAddresses($addresses)
37  {
38  $this->addresses = $addresses;
39  }
40 
45  abstract protected function parseAddressString($a_addresses);
46 
50  public function parse()
51  {
52  $addresses = preg_replace('/;/', ',', trim($this->addresses));
53  return $this->parseAddressString($addresses);
54  }
55 }
Interface ilMailRecipientParser.
Class ilBaseMailRfc822AddressParser.
parseAddressString($a_addresses)