ILIAS  release_8 Revision v8.19
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)
 
 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.

References $host, and $mailbox.

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

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )

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

References getHost(), and getMailbox().

57  : string
58  {
59  return implode('@', [
60  $this->getMailbox(),
61  $this->getHost(),
62  ]);
63  }
+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )

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

◆ setHost()

ilMailAddress::setHost ( string  $host)

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

References $host.

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

◆ setMailbox()

ilMailAddress::setMailbox ( string  $mailbox)

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

References $mailbox.

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

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: