ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ 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
7
function
mainbar
(): string
8
{
9
global
$DIC
;
10
$f
= $DIC[
'ui.factory'
];
11
$renderer = $DIC[
'ui.renderer'
];
12
$ctrl = $DIC[
'ilCtrl'
];
13
14
15
$ctrl->setParameterByClass(
'ilsystemstyledocumentationgui'
,
'node_id'
,
'LayoutPageStandardStandard'
);
16
$ctrl->setParameterByClass(
'ilsystemstyledocumentationgui'
,
'new_ui'
,
'1'
);
17
$url
= $ctrl->getLinkTargetByClass(
'ilsystemstyledocumentationgui'
,
'entries'
);
18
$to_page =
$f
->link()->standard(
'Full Screen Page Layout'
,
$url
);
19
$txt
=
$f
->legacy(
'<p>Better head over to a preview of page to see a mainbar in its entire beauty...</p>'
);
20
return
$renderer->render([
21
$txt
,
22
$to_page
23
]);
24
}
ILIAS\UI\examples\MainControls\MainBar\mainbar
mainbar()
Definition:
mainbar.php:7
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\MainControls\MainBar
Definition:
mainbar.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$url
$url
Definition:
ltiregstart.php:35
$txt
$txt
Definition:
error.php:14
src
UI
examples
MainControls
MainBar
mainbar.php
Generated on Wed Sep 10 2025 14:12:11 for ILIAS by
1.8.13 (using
Doxyfile
)