ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LearningHistory\LearningHistoryMainBarProvider Class Reference

Class LearningHistoryMainBarProvider. More...

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

Public Member Functions

 getStaticTopItems ()
 
 getStaticSubItems ()
 
- 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 (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 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
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\LearningHistory\LearningHistoryMainBarProvider::getStaticSubItems ( )
Returns
isItem[] These are Entries which will be available for configuration.

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

Definition at line 39 of file LearningHistoryMainBarProvider.php.

39 : array
40 {
41 global $DIC;
42
43 $entries = [];
44
45 $settings = $DIC->settings();
46
47 $title = $this->dic->language()->txt("mm_learning_history");
48 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::LHTS, $title);
49
50 $entries[] = $this->mainmenu->link($this->if->identifier('learning_history'))
51 ->withTitle($title)
52 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
53 ilDashboardGUI::class,
54 ilAchievementsGUI::class,
55 ilLearningHistoryGUI::class,
56 ], ""))
57 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
58 ->withPosition(10)
59 ->withSymbol($icon)
60 ->withAvailableCallable(
61 static function () use ($settings): bool {
62 return (bool) $settings->get("enable_learning_history");
63 }
64 );
65
66 return $entries;
67 }
if(!file_exists('../ilias.ini.php'))
global $DIC
Definition: shib_login.php:26

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 ( )
Returns
TopParentItem[] These are Slates which will be available for configuration.

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

Definition at line 34 of file LearningHistoryMainBarProvider.php.

34 : array
35 {
36 return [];
37 }

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