ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
mainbar.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\MainControls\MainBar
;
6
36
function
mainbar
(): string
37
{
38
global
$DIC
;
39
$f
= $DIC[
'ui.factory'
];
40
$renderer
= $DIC[
'ui.renderer'
];
41
$ctrl = $DIC[
'ilCtrl'
];
42
43
44
$ctrl->setParameterByClass(
'ilsystemstyledocumentationgui'
,
'node_id'
,
'LayoutPageStandardStandard'
);
45
$ctrl->setParameterByClass(
'ilsystemstyledocumentationgui'
,
'new_ui'
,
'1'
);
46
$url
= $ctrl->getLinkTargetByClass(
'ilsystemstyledocumentationgui'
,
'entries'
);
47
$to_page =
$f
->link()->standard(
'Full Screen Page Layout'
,
$url
);
48
$txt
=
$f
->legacy(
'<p>Better head over to a preview of page to see a mainbar in its entire beauty...</p>'
);
49
return
$renderer
->render([
50
$txt
,
51
$to_page
52
]);
53
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
$url
$url
Definition:
shib_logout.php:63
ILIAS\UI\examples\MainControls\MainBar\mainbar
mainbar()
expected output: > ILIAS shows a link "Full Screen Page Layout".
Definition:
mainbar.php:36
ILIAS\UI\examples\MainControls\MainBar
Definition:
mainbar.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:25
$txt
$txt
Definition:
error.php:30
components
ILIAS
UI
src
examples
MainControls
MainBar
mainbar.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)