ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
simple.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\MainControls\SystemInfo
;
22
23
use
ILIAS\Data\URI
;
24
37
function
simple
()
38
{
39
//
40
//
41
42
global
$DIC
;
43
$f
=
$DIC
->ui()->factory();
44
$renderer
=
$DIC
->ui()->renderer();
45
46
$dismiss_action = isset(
$_SERVER
[
'HTTP_REFERER'
]) ?
$_SERVER
[
'HTTP_REFERER'
] :
"http://localhost"
;
47
$systemInfo =
$f
->mainControls()
48
->systemInfo(
'This is an neutral Message!'
,
'read it, understand it, dismiss it...'
)
49
->withDismissAction(
new
URI
($dismiss_action));
50
51
return
$renderer
->render([$systemInfo]);
52
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\Data\URI
The scope of this class is split ilias-conform URI's into components.
Definition:
URI.php:35
ILIAS\UI\examples\MainControls\SystemInfo
Definition:
long_text.php:21
ILIAS\UI\examples\MainControls\SystemInfo\simple
simple()
Definition:
simple.php:37
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:26
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
MainControls
SystemInfo
simple.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)