ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LPMainBarProvider.php
Go to the documentation of this file.
2
6
13{
14
18 public function getStaticTopItems() : array
19 {
20 return [];
21 }
22
23
27 public function getStaticSubItems() : array
28 {
29 global $DIC;
30
31 $title = $this->dic->language()->txt("mm_learning_progress");
32 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("trac", $title)->withIsOutlined(true);
33 $ctrl = $DIC->ctrl();
34 return [
35 $this->mainmenu->link($this->if->identifier('mm_pd_lp'))
36 ->withTitle($title)
37 ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI",
38 "ilAchievementsGUI","ilLearningProgressGUI","ilLPListOfProgressGUI"]))
39 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
40 ->withPosition(30)
41 ->withSymbol($icon)
42 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
43 ->withAvailableCallable(
44 function () {
48 }
49 ),
50 ];
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
static _enabledLearningProgress()
check wether learing progress is enabled or not
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
$DIC
Definition: xapitoken.php:46