ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\LearningHistory\LearningHistoryMainBarProvider Class Reference

Class LearningHistoryMainBarProvider. More...

+ Inheritance diagram for ILIAS\LearningHistory\LearningHistoryMainBarProvider:
+ Collaboration diagram for ILIAS\LearningHistory\LearningHistoryMainBarProvider:

Public Member Functions

 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\LearningHistory\LearningHistoryMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 30 of file LearningHistoryMainBarProvider.php.

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

References $DIC, ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, and ILIAS\UI\Component\Symbol\Icon\Standard\LHTS.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\LearningHistory\LearningHistoryMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 21 of file LearningHistoryMainBarProvider.php.

21 : array
22 {
23 return [];
24 }

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