ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 21 of file class.ilMailAddress.php.

22 {
23 $this->mailbox = $mailbox;
24 $this->host = $host;
25 }

References $host, and $mailbox.

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )
Returns
string

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

62 : string
63 {
64 return implode('@', [
65 $this->getMailbox(),
66 $this->getHost(),
67 ]);
68 }

References getHost(), and getMailbox().

+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )
Returns
string

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

46 : string
47 {
48 return $this->host;
49 }

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 54 of file class.ilMailAddress.php.

54 : string
55 {
56 return $this->mailbox;
57 }

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 30 of file class.ilMailAddress.php.

31 {
32 $this->host = $host;
33 }

References $host.

◆ setMailbox()

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

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

39 {
40 $this->mailbox = $mailbox;
41 }

References $mailbox.

Field Documentation

◆ $host

ilMailAddress::$host = ''
protected

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

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

◆ $mailbox

ilMailAddress::$mailbox = ''
protected

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

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


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