ILIAS
trunk Revision v12.0_alpha-16-g3e876e53c80
◀ ilDoc Overview
base.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Layout\Page\Mail
;
22
23
use
ILIAS\Data\Factory
;
24
use
ILIAS\Data\URI
;
25
use
ILIAS\DI\Container
;
26
use
ilInitialisation
;
27
39
function
base
(): string
40
{
41
global
$DIC
;
42
$factory =
$DIC
->ui()->factory();
43
$renderer
=
$DIC
->ui()->renderer();
44
45
$icon = $factory->symbol()->icon()->standard(
'root'
,
''
)->withSize(
'large'
);
46
$target =
new
URI
(
47
$DIC
->http()->request()->getUri()->__toString() .
'&new_ui=1'
48
);
49
50
return
$renderer
->render(
51
$factory->link()->bulky($icon,
'See UI in fullscreen-mode'
, $target),
52
);
53
}
54
55
global
$DIC
;
56
$request_wrapper
=
$DIC
->http()->wrapper()->query();
57
$refinery
=
$DIC
->refinery();
58
59
if
(
$request_wrapper
->has(
'new_ui'
)
60
&&
$request_wrapper
->retrieve(
'new_ui'
,
$refinery
->kindlyTo()->int()) === 1
61
) {
62
ilInitialisation::initILIAS
();
63
echo(
renderFullDemoPage
(
$DIC
));
64
exit
();
65
}
66
67
function
renderFullDemoPage
(
Container
$dic
): string
68
{
69
$factory =
$dic
->ui()->factory();
70
$renderer
=
$dic
->ui()->renderer();
71
$dataFactory =
new
Factory
();
72
73
$page = $factory->layout()->page()->mail(
74
'assets/ui-examples/css/mail_examples.css'
,
75
'data:image/svg+xml;base64,'
. base64_encode(file_get_contents(
'assets/images/logo/HeaderIcon.svg'
)),
76
'ILIAS e-Learning'
,
77
$factory->legacy()->content(
'<h1>Mail Page Content</h1><p>Dear John Doe, ...<p/>'
),
78
$dataFactory->link(
'https://www.ilias.de'
, $dataFactory->uri(
'https://www.ilias.de'
)),
79
);
80
81
return
$renderer
->render($page);
82
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:36
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\Data\URI
The scope of this class is split ilias-conform URI's into components.
Definition:
URI.php:35
ilInitialisation
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration fil...
Definition:
class.ilInitialisation.php:54
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1144
exit
exit
Definition:
dummy_client.php:21
$dic
$dic
Definition:
ltiresult.php:33
ILIAS\UI\examples\Layout\Page\Mail
Definition:
base.php:21
ILIAS\UI\examples\Layout\Page\Mail\$request_wrapper
$request_wrapper
Definition:
base.php:56
ILIAS\UI\examples\Layout\Page\Mail\$refinery
$refinery
Definition:
base.php:57
ILIAS\UI\examples\Layout\Page\Mail\base
base()
Definition:
base.php:39
ILIAS\UI\examples\Layout\Page\Mail\$DIC
global $DIC
Definition:
base.php:55
ILIAS\UI\examples\Layout\Page\Mail\renderFullDemoPage
if( $request_wrapper->has( 'new_ui') &&$request_wrapper->retrieve( 'new_ui', $refinery->kindlyTo() ->int())===1) renderFullDemoPage(Container $dic)
Definition:
base.php:67
components
ILIAS
UI
src
examples
Layout
Page
Mail
base.php
Generated on Sun Nov 2 2025 23:04:24 for ILIAS by
1.9.4 (using
Doxyfile
)