ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 
 getAllIdentifications ()
 
 provideTypeInformation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

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
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

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.

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

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  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
global $DIC
Definition: feed.php:28
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
+ 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: