ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
LPMainBarProvider.php
Go to the documentation of this file.
1 <?php namespace ILIAS\LearningProgress;
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 }
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
global $DIC
Definition: goto.php:24