ILIAS  release_8 Revision v8.24
ilMailAddress Class Reference

Class ilMailAddress. More...

+ Collaboration diagram for ilMailAddress:

Public Member Functions

 __construct (string $mailbox, string $host)
 
 setHost (string $host)
 
 setMailbox (string $mailbox)
 
 getHost ()
 
 getMailbox ()
 
 __toString ()
 

Protected Attributes

string $mailbox = ''
 
string $host = ''
 

Detailed Description

Class ilMailAddress.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

References $host, and $mailbox.

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )

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

57 : string
58 {
59 return implode('@', [
60 $this->getMailbox(),
61 $this->getHost(),
62 ]);
63 }

References getHost(), and getMailbox().

+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )

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 ( )

◆ setHost()

ilMailAddress::setHost ( string  $host)

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

36 : void
37 {
38 $this->host = $host;
39 }

References $host.

◆ setMailbox()

ilMailAddress::setMailbox ( string  $mailbox)

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

41 : void
42 {
43 $this->mailbox = $mailbox;
44 }

References $mailbox.

Field Documentation

◆ $host

string ilMailAddress::$host = ''
protected

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

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

◆ $mailbox

string ilMailAddress::$mailbox = ''
protected

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

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


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