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 ()
 @inheritDoc More...
 
 getStaticSubItems ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getAllIdentifications ()
 @inheritDoc More...
 
 provideTypeInformation ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getStaticTopItems ()
 
 getStaticSubItems ()
 
 provideTypeInformation ()
 
 getAllIdentifications ()
 

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)

Member Function Documentation

◆ getStaticSubItems()

ilLearningHistoryGlobalScreenProvider::getStaticSubItems ( )

@inheritDoc

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

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

39 : array
40 {
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

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

◆ getStaticTopItems()

ilLearningHistoryGlobalScreenProvider::getStaticTopItems ( )

@inheritDoc

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: