ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $host, and $mailbox.

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

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )
Returns
string

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

References getHost(), and getMailbox().

62  : string
63  {
64  return implode('@', [
65  $this->getMailbox(),
66  $this->getHost(),
67  ]);
68  }
+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )
Returns
string

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

References $host.

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

46  : string
47  {
48  return $this->host;
49  }
+ Here is the caller graph for this function:

◆ getMailbox()

ilMailAddress::getMailbox ( )
Returns
string

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

References $mailbox.

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

54  : string
55  {
56  return $this->mailbox;
57  }
+ 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.

References $host.

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

◆ setMailbox()

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

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

References $mailbox.

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

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: