ILIAS  release_7 Revision v7.30-3-g800a261c036
LearningHistoryMainBarProvider.php
Go to the documentation of this file.
2
9
16{
17
21 public function getStaticTopItems() : array
22 {
23 return [];
24 }
25
26
30 public function getStaticSubItems() : array
31 {
32 global $DIC;
33
34 $entries = [];
35
36 $settings = $DIC->settings();
37
38 $title = $this->dic->language()->txt("mm_learning_history");
39 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::LHTS, $title)->withIsOutlined(true);
40
41 $entries[] = $this->mainmenu->link($this->if->identifier('learning_history'))
42 ->withTitle($title)
43 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
44 ilDashboardGUI::class,
45 ilAchievementsGUI::class,
46 ilLearningHistoryGUI::class,
47 ], ""))
48 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
49 ->withPosition(10)
50 ->withSymbol($icon)
51 ->withAvailableCallable(
52 function () use ($settings) {
53 return (bool) $settings->get("enable_learning_history");
54 }
55 );
56
57 return $entries;
58 }
59}
An exception for terminatinating execution or to throw for unit testing.
Learning history main GUI class.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
global $DIC
Definition: goto.php:24
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:11