ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\examples\MainControls\MainBar Namespace Reference

Functions

 mainbar ()
 

expected output: > ILIAS shows a link "Full Screen Page Layout". More...

 

Function Documentation

◆ mainbar()

ILIAS\UI\examples\MainControls\MainBar\mainbar ( )


expected output: > ILIAS shows a link "Full Screen Page Layout".

On clicking the link, a new page opens. The mainbar on the new page is initially closed.

MainBar is big component; the page shows some of its features: "Tools": > The Tools-entry is differently colored than the rest of the entries. Clicking it will open the slate and reveal the tools "Help", "Editor" and "Closeable Tool". Each of them are clickable and will alter the slate's content when clicked. The "X" will remove the "Closeable Tool" from the tools-section. "Repository": > The slate in "Repository" is filled with a lot of entries to demonstrate the vertical scrollbar within it. "Personal Workspace": > will contain two entries "Bookmarks", which will open sub-entries (links) rather than changing the content of the page. "Organisation": > There is a larger sub-structure of further slates in "Organisation". Higher slates ("1") will close all lower levels(1.1, 1.2), but will re-open to the state the user left the substructure.

Clicking an opened entry will close the slate.

Re-opening will have the state of the substructure preserved.

Definition at line 52 of file mainbar.php.

References $DIC, Vendor\Package\$f, $renderer, $txt, and $url.

Referenced by ILIAS\UI\Implementation\Component\Layout\Page\Standard\__construct(), ILIAS\UI\Implementation\Component\Layout\Page\Standard\hasMainbar(), MainBarTest\setUp(), StandardPageTest\setUp(), MainBarTest\testAddEntry(), MainBarTest\testAddToolEntry(), MainBarTest\testAddToolEntryWithoutToolsButton(), MainBarTest\testConstruction(), MainBarTest\testDisallowedEntry(), MainBarTest\testDisallowedToolEntry(), MainBarTest\testDouplicateIdEntry(), MainBarTest\testDouplicateIdToolEntry(), StandardPageTest\testGetMainbar(), StandardPageTest\testRenderingWithCrumbs(), StandardPageTest\testRenderingWithMetaData(), StandardPageTest\testRenderingWithRtlLanguage(), StandardPageTest\testRenderingWithTitle(), MainBarTest\testSignalsPresent(), MainBarTest\testWithInvalidActive(), and StandardPageTest\testWithWrongContents().

52  : 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
$url
Definition: shib_logout.php:66
global $DIC
Definition: shib_login.php:22
$txt
Definition: error.php:31
+ Here is the caller graph for this function: