ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilLearningHistoryGlobalScreenProvider.php
Go to the documentation of this file.
1 <?php
2 
5 
12 {
13 
17  protected $top_item;
18 
19 
20  public function __construct(\ILIAS\DI\Container $dic)
21  {
22  parent::__construct($dic);
23  $this->top_item = (new ilPDGlobalScreenProvider($dic))->getTopItem();
24  }
25 
26 
30  public function getStaticTopItems() : array
31  {
32  return [];
33  }
34 
35 
39  public function getStaticSubItems() : array
40  {
41  $dic = $this->dic;
42 
43  $dic->language()->loadLanguageModule('lhist');
44 
45  return [$this->mainmenu->link($this->if->identifier('mm_pd_lhist'))
46  ->withTitle($this->dic->language()->txt("lhist_learning_history"))
47  ->withAction($dic->ctrl()->getLinkTargetByClass(["ilPersonalDesktopGUI", "ilLearningHistoryGUI"]))
48  ->withParent($this->top_item)
49  ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
50  ->withAvailableCallable(
51  function () use ($dic) {
52  return (bool) ($dic->learningHistory()->isActive());
53  }
54  )
55  ->withVisibilityCallable(
56  function () use ($dic) {
57  return (bool) ($dic->learningHistory()->isActive($dic->user()->getId()));
58  }
59  )];
60  }
61 }
Class BaseForm.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
Class HTTPServicesTest.
Class ilPDGlobalScreenProvider.