ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
◀ ilDoc Overview
Mail.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Layout\Page
;
22
23
use
ILIAS\UI\Component\Layout\Page
;
24
use
ILIAS\UI\Component\Legacy\Content
;
25
use
ILIAS\Data\Link
;
26
use ILIAS\UI\Implementation\Component\ComponentHelper;
27
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
28
use InvalidArgumentException;
29
30
class
Mail
implements
Page\Mail
31
{
32
use ComponentHelper;
33
use
JavaScriptBindable
;
34
35
public
function
__construct
(
36
protected
string
$stylesheet_path,
37
protected
string
$logo_url,
38
protected
string
$installation_title,
39
protected
Content
$html_content,
40
protected
Link
$footer_url,
41
) {
42
if
(!is_readable($this->
getStyleSheetPath
())) {
43
throw
new
InvalidArgumentException(
"Could not read stylesheet at {$this->getStyleSheetPath()}."
);
44
}
45
46
if
(!str_starts_with($this->
getLogoURL
(),
'cid:'
) && !str_starts_with($this->
getLogoURL
(),
'data:'
)) {
47
throw
new
InvalidArgumentException(
'The logo URL must be a cid or data URL.'
);
48
}
49
}
50
51
public
function
getContent
(): array
52
{
53
return
[
54
$this->html_content,
55
];
56
}
57
58
public
function
getLogoURL
(): string
59
{
60
return
$this->logo_url;
61
}
62
63
public
function
getInstallationTitle
(): string
64
{
65
return
$this->installation_title;
66
}
67
68
public
function
getStyleSheetPath
(): string
69
{
70
return
$this->stylesheet_path;
71
}
72
73
public
function
getFooterURL
():
Link
74
{
75
return
$this->footer_url;
76
}
77
}
ILIAS\Data\Link
A Link is the often used combination of a label and an URL.
Definition:
Link.php:29
ILIAS\UI\Implementation\Component\Layout\Page\Mail\getStyleSheetPath
getStyleSheetPath()
Definition:
Mail.php:68
ILIAS\UI\Implementation\Component\Layout\Page\Mail\getContent
getContent()
Definition:
Mail.php:51
ILIAS\UI\Implementation\Component\Layout\Page\Mail\getLogoURL
getLogoURL()
Definition:
Mail.php:58
ILIAS\UI\Implementation\Component\Layout\Page\Mail\__construct
__construct(protected string $stylesheet_path, protected string $logo_url, protected string $installation_title, protected Content $html_content, protected Link $footer_url,)
Definition:
Mail.php:35
ILIAS\UI\Implementation\Component\Layout\Page\Mail\getInstallationTitle
getInstallationTitle()
Definition:
Mail.php:63
ILIAS\UI\Implementation\Component\Layout\Page\Mail\getFooterURL
getFooterURL()
Definition:
Mail.php:73
ILIAS\UI\Component\Layout\Page\Mail
This describes the Mail.
Definition:
Mail.php:27
ILIAS\UI\Component\Legacy\Content
Definition:
Content.php:33
ILIAS\UI\Component\Layout\Page
Definition:
Factory.php:21
ILIAS\UI\Implementation\Component\Layout\Page
Definition:
Factory.php:21
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
Mail
RFC 822 Email address list validation Utility.
components
ILIAS
UI
src
Implementation
Component
Layout
Page
Mail.php
Generated on Sat Dec 13 2025 23:02:32 for ILIAS by
1.9.4 (using
Doxyfile
)