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

Class ilMailAddress. More...

+ Collaboration diagram for ilMailAddress:

Public Member Functions

 __construct (string $mailbox, string $host)
 ilMailAddress constructor. More...
 
 setHost (string $host)
 
 setMailbox (string $mailbox)
 
 getHost ()
 
 getMailbox ()
 
 __toString ()
 

Protected Attributes

 $mailbox = ''
 
 $host = ''
 

Detailed Description

Class ilMailAddress.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 8 of file class.ilMailAddress.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailAddress::__construct ( string  $mailbox,
string  $host 
)

ilMailAddress constructor.

Parameters
string$mailbox
string$host

Definition at line 25 of file class.ilMailAddress.php.

26 {
27 $this->mailbox = $mailbox;
28 $this->host = $host;
29 }

References $host, and $mailbox.

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )
Returns
string

Definition at line 66 of file class.ilMailAddress.php.

66 : string
67 {
68 return implode('@', [
69 $this->getMailbox(),
70 $this->getHost(),
71 ]);
72 }

References getHost(), and getMailbox().

+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )
Returns
string

Definition at line 50 of file class.ilMailAddress.php.

50 : string
51 {
52 return $this->host;
53 }

References $host.

Referenced by __toString(), ilMailAddressTest\testAddressShouldReturnMailboxAndHost(), and ilGroupNameAsMailValidator\validate().

+ Here is the caller graph for this function:

◆ getMailbox()

ilMailAddress::getMailbox ( )
Returns
string

Definition at line 58 of file class.ilMailAddress.php.

58 : string
59 {
60 return $this->mailbox;
61 }

References $mailbox.

Referenced by __toString(), ilMailAddressTypeFactory\getByPrefix(), ilMailAddressTest\testAddressShouldReturnMailboxAndHost(), and ilGroupNameAsMailValidator\validate().

+ Here is the caller graph for this function:

◆ setHost()

ilMailAddress::setHost ( string  $host)
Parameters
string$host

Definition at line 34 of file class.ilMailAddress.php.

35 {
36 $this->host = $host;
37 }

References $host.

◆ setMailbox()

ilMailAddress::setMailbox ( string  $mailbox)
Parameters
string$mailbox

Definition at line 42 of file class.ilMailAddress.php.

43 {
44 $this->mailbox = $mailbox;
45 }

References $mailbox.

Field Documentation

◆ $host

ilMailAddress::$host = ''
protected

Definition at line 18 of file class.ilMailAddress.php.

Referenced by __construct(), getHost(), and setHost().

◆ $mailbox

ilMailAddress::$mailbox = ''
protected

Definition at line 13 of file class.ilMailAddress.php.

Referenced by __construct(), getMailbox(), and setMailbox().


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