ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
LearningHistoryMainBarProvider.php
Go to the documentation of this file.
1 <?php namespace ILIAS\LearningHistory;
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 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
$DIC
Definition: xapitoken.php:46