ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
mainbar.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\MainControls\MainBar
;
22
52
function
mainbar
(): string
53
{
54
global
$DIC
;
55
$f
= $DIC[
'ui.factory'
];
56
$renderer
= $DIC[
'ui.renderer'
];
57
$ctrl = $DIC[
'ilCtrl'
];
58
59
60
$ctrl->setParameterByClass(
'ilsystemstyledocumentationgui'
,
'node_id'
,
'LayoutPageStandardStandard'
);
61
$ctrl->setParameterByClass(
'ilsystemstyledocumentationgui'
,
'new_ui'
,
'1'
);
62
$url
= $ctrl->getLinkTargetByClass(
'ilsystemstyledocumentationgui'
,
'entries'
);
63
$to_page =
$f
->link()->standard(
'Full Screen Page Layout'
,
$url
);
64
$txt
=
$f
->legacy()->content(
'<p>Better head over to a preview of page to see a mainbar in its entire beauty...</p>'
);
65
return
$renderer
->render([
66
$txt
,
67
$to_page
68
]);
69
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
$url
$url
Definition:
shib_logout.php:68
ILIAS\UI\examples\MainControls\MainBar\mainbar
mainbar()
expected output: > ILIAS shows a link "Full Screen Page Layout".
Definition:
mainbar.php:52
ILIAS\UI\examples\MainControls\MainBar
Definition:
mainbar.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
$txt
$txt
Definition:
error.php:31
components
ILIAS
UI
src
examples
MainControls
MainBar
mainbar.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)