ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
metabar.php File Reference

Go to the source code of this file.

Functions

 metabar ()
 
 buildMetabar ($f)
 

Function Documentation

◆ buildMetabar()

buildMetabar (   $f)

Definition at line 11 of file metabar.php.

References Vendor\Package\$f.

Referenced by metabar().

12 {
13  $help = $f->button()->bulky($f->symbol()->glyph()->help(), 'Help', '#');
14  $search = $f->button()->bulky($f->symbol()->glyph()->search(), 'Search', '#');
15  $user = $f->button()->bulky($f->symbol()->glyph()->user(), 'User', '#');
16 
17  $notes = $f->maincontrols()->slate()->legacy(
18  'Notification',
19  $f->symbol()->glyph()->notification(),
20  $f->legacy('some content')
21  );
22 
23  $metabar = $f->mainControls()->metabar()
24  ->withAdditionalEntry('search', $search)
25  ->withAdditionalEntry('help', $help)
26  ->withAdditionalEntry('notes', $notes)
27  ->withAdditionalEntry('user', $user)
28  ;
29 
30  return $metabar;
31 }
+ Here is the caller graph for this function:

◆ metabar()

metabar ( )

Definition at line 2 of file metabar.php.

References $DIC, Vendor\Package\$f, and buildMetabar().

Referenced by ILIAS\UI\Implementation\Component\Layout\Page\Standard\__construct(), ILIAS\UI\Implementation\Component\Layout\Page\Standard\hasMetabar(), MetaBarTest\setUp(), StandardPageTest\setUp(), MetaBarTest\testAddEntry(), MetaBarTest\testConstruction(), MetaBarTest\testDisallowedEntry(), StandardPageTest\testGetMetabar(), MetaBarTest\testRendering(), MetaBarTest\testSignalsPresent(), and StandardPageTest\testWithWrongContents().

3 {
4  global $DIC;
5  $f = $DIC->ui()->factory();
6  $renderer = $DIC->ui()->renderer();
7 
8  return $renderer->render(buildMetabar($f));
9 }
buildMetabar($f)
Definition: metabar.php:11
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:
+ Here is the caller graph for this function: