ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLearningHistoryGlobalScreenProvider Class Reference

Class ilStaffGlobalScreenProvider. More...

+ Inheritance diagram for ilLearningHistoryGlobalScreenProvider:
+ Collaboration diagram for ilLearningHistoryGlobalScreenProvider:

Public Member Functions

 __construct (\ILIAS\DI\Container $dic)
 
 getStaticTopItems ()
 
 getStaticSubItems ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 __construct (Container $dic)
 
 getAllIdentifications ()
 
 provideTypeInformation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Protected Attributes

 $top_item
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Additional Inherited Members

- Data Fields inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider
const PURPOSE_MAINBAR = 'mainmenu'
 
- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilLearningHistoryGlobalScreenProvider::__construct ( \ILIAS\DI\Container  $dic)

Definition at line 20 of file class.ilLearningHistoryGlobalScreenProvider.php.

21  {
22  parent::__construct($dic);
23  $this->top_item = (new ilPDGlobalScreenProvider($dic))->getTopItem();
24  }
Class ilPDGlobalScreenProvider.

Member Function Documentation

◆ getStaticSubItems()

ilLearningHistoryGlobalScreenProvider::getStaticSubItems ( )

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 39 of file class.ilLearningHistoryGlobalScreenProvider.php.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, and if.

39  : 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  }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

◆ getStaticTopItems()

ilLearningHistoryGlobalScreenProvider::getStaticTopItems ( )

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 30 of file class.ilLearningHistoryGlobalScreenProvider.php.

30  : array
31  {
32  return [];
33  }

Field Documentation

◆ $top_item

ilLearningHistoryGlobalScreenProvider::$top_item
protected

The documentation for this class was generated from the following file: