ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
mainbar.php File Reference

Go to the source code of this file.

Functions

 mainbar ()
 
 buildMainbar ($f, $r)
 
 getDemoEntryRepository ($f)
 
 getDemoEntryPersonalWorkspace ($f)
 
 getDemoEntryAchievements ($f)
 
 getDemoEntryCommunication ($f)
 
 getDemoEntryOrganisation ($f)
 
 getDemoEntryAdministration ($f)
 
 getDemoEntryTools ($f)
 

Function Documentation

◆ buildMainbar()

buildMainbar (   $f,
  $r 
)

Definition at line 12 of file mainbar.php.

13{
14 $tools_btn = $f->button()->bulky(
15 $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/grid.svg', ''),
16 'Tools',
17 '#'
18 );
19 $more_btn = $f->button()->bulky(
20 $f->symbol()->icon()->standard('', ''),
21 'more',
22 '#'
23 );
24
25 $mainbar = $f->mainControls()->mainbar()
26 ->withToolsButton($tools_btn)
27 ->withMoreButton($more_btn);
28
29 $entries = [];
30 $entries['repository'] = getDemoEntryRepository($f);
31 $entries['pws'] = getDemoEntryPersonalWorkspace($f);
32 $entries['achievements'] = getDemoEntryAchievements($f);
33 $entries['communication'] = getDemoEntryCommunication($f);
34 $entries['organisation'] = getDemoEntryOrganisation($f);
35 $entries['administration'] = getDemoEntryAdministration($f);
36
37 foreach ($entries as $id => $entry) {
38 $mainbar = $mainbar->withAdditionalEntry($id, $entry);
39 }
40 $tools = getDemoEntryTools($f);
41 foreach ($tools as $id => $entry) {
42 $mainbar = $mainbar->withAdditionalToolEntry($id, $entry);
43 }
44
45 return $mainbar;
46}
getDemoEntryAdministration($f)
Definition: mainbar.php:83
getDemoEntryRepository($f)
Definition: mainbar.php:48
getDemoEntryOrganisation($f)
Definition: mainbar.php:76
getDemoEntryPersonalWorkspace($f)
Definition: mainbar.php:55
getDemoEntryCommunication($f)
Definition: mainbar.php:69
getDemoEntryAchievements($f)
Definition: mainbar.php:62
getDemoEntryTools($f)
Definition: mainbar.php:90

References Vendor\Package\$f, getDemoEntryAchievements(), getDemoEntryAdministration(), getDemoEntryCommunication(), getDemoEntryOrganisation(), getDemoEntryPersonalWorkspace(), getDemoEntryRepository(), and getDemoEntryTools().

Referenced by mainbar().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDemoEntryAchievements()

getDemoEntryAchievements (   $f)

Definition at line 62 of file mainbar.php.

63{
64 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/achievements.svg', '')->withSize('small');
65 $slate = $f->maincontrols()->slate()->legacy('Achievements', $symbol, $f->legacy('content: Achievements'));
66 return $slate;
67}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ getDemoEntryAdministration()

getDemoEntryAdministration (   $f)

Definition at line 83 of file mainbar.php.

84{
85 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/administration.svg', '')->withSize('small');
86 $slate = $f->maincontrols()->slate()->legacy('Administration', $symbol, $f->legacy('content: Administration'));
87 return $slate;
88}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ getDemoEntryCommunication()

getDemoEntryCommunication (   $f)

Definition at line 69 of file mainbar.php.

70{
71 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/communication.svg', '')->withSize('small');
72 $slate = $f->maincontrols()->slate()->legacy('Communication', $symbol, $f->legacy('content: Communication'));
73 return $slate;
74}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ getDemoEntryOrganisation()

getDemoEntryOrganisation (   $f)

Definition at line 76 of file mainbar.php.

77{
78 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/organisation.svg', '')->withSize('small');
79 $slate = $f->maincontrols()->slate()->legacy('Organisation', $symbol, $f->legacy('content: Organisation'));
80 return $slate;
81}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ getDemoEntryPersonalWorkspace()

getDemoEntryPersonalWorkspace (   $f)

Definition at line 55 of file mainbar.php.

56{
57 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/user.svg', '')->withSize('small');
58 $slate = $f->maincontrols()->slate()->combined('Personal Workspace', $symbol, '');
59 return $slate;
60}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ getDemoEntryRepository()

getDemoEntryRepository (   $f)

Definition at line 48 of file mainbar.php.

49{
50 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/layers.svg', '')->withSize('small');
51 $slate = $f->maincontrols()->slate()->combined('Repository', $symbol, '');
52 return $slate;
53}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ getDemoEntryTools()

getDemoEntryTools (   $f)

Definition at line 90 of file mainbar.php.

91{
92 $symbol = $f->symbol()->icon()->custom('./src/UI/examples/Layout/Page/Standard/question.svg', '')->withSize('small');
93 $slate = $f->maincontrols()->slate()->legacy('Help', $symbol, $f->legacy('<h2>tool 1</h2><p>Some Text for Tool 1 entry</p>'));
94 $tools = ['tool1' => $slate];
95 return $tools;
96}

References Vendor\Package\$f.

Referenced by buildMainbar().

+ Here is the caller graph for this function:

◆ mainbar()