ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilMailAddress.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilMailAddress
9
{
13
protected
$mailbox
=
''
;
14
18
protected
$host
=
''
;
19
25
public
function
__construct
(
string
$mailbox
,
string
$host
)
26
{
27
$this->mailbox =
$mailbox
;
28
$this->host =
$host
;
29
}
30
34
public
function
setHost
(
string
$host
)
35
{
36
$this->host =
$host
;
37
}
38
42
public
function
setMailbox
(
string
$mailbox
)
43
{
44
$this->mailbox =
$mailbox
;
45
}
46
50
public
function
getHost
() : string
51
{
52
return
$this->host
;
53
}
54
58
public
function
getMailbox
() : string
59
{
60
return
$this->mailbox
;
61
}
62
66
public
function
__toString
() : string
67
{
68
return
implode(
'@'
, [
69
$this->
getMailbox
(),
70
$this->
getHost
(),
71
]);
72
}
73
}
ilMailAddress\$mailbox
$mailbox
Definition:
class.ilMailAddress.php:13
ilMailAddress\__construct
__construct(string $mailbox, string $host)
ilMailAddress constructor.
Definition:
class.ilMailAddress.php:25
ilMailAddress\getMailbox
getMailbox()
Definition:
class.ilMailAddress.php:58
ilMailAddress\setMailbox
setMailbox(string $mailbox)
Definition:
class.ilMailAddress.php:42
ilMailAddress\__toString
__toString()
Definition:
class.ilMailAddress.php:66
ilMailAddress\$host
$host
Definition:
class.ilMailAddress.php:18
ilMailAddress\getHost
getHost()
Definition:
class.ilMailAddress.php:50
php
ilMailAddress\setHost
setHost(string $host)
Definition:
class.ilMailAddress.php:34
ilMailAddress
Class ilMailAddress.
Definition:
class.ilMailAddress.php:8
Services
Mail
classes
Address
class.ilMailAddress.php
Generated on Thu Jan 16 2025 19:02:24 for ILIAS by
1.8.13 (using
Doxyfile
)