ILIAS  release_8 Revision v8.24
LPMainBarProvider.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=0);
4
6
10
16{
20 public function getStaticTopItems(): array
21 {
22 return [];
23 }
24
28 public function getStaticSubItems(): array
29 {
30 global $DIC;
31
32 $title = $this->dic->language()->txt("mm_learning_progress");
33 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
34 "trac",
35 $title
36 );
37 $ctrl = $DIC->ctrl();
38
40 'ilLPListOfProgressGUI' : 'ilLPListOfObjectsGUI';
41
42 return [
43 $this->mainmenu->link($this->if->identifier('mm_pd_lp'))
44 ->withTitle($title)
45 ->withAction(
46 $ctrl->getLinkTargetByClass(
47 ["ilDashboardGUI",
48 "ilAchievementsGUI",
49 "ilLearningProgressGUI",
50 $target_class
51 ]
52 )
53 )
54 ->withParent(
56 )->getAchievementsIdentification()
57 )
58 ->withPosition(30)
59 ->withSymbol($icon)
60 ->withNonAvailableReason(
61 $this->dic->ui()->factory()->legacy(
62 "{$this->dic->language()->txt('component_not_active')}"
63 )
64 )
65 ->withAvailableCallable(
66 function () {
68 (
71 );
72 }
73 ),
74 ];
75 }
76}
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
global $DIC
Definition: feed.php:28