ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\LearningHistory\LearningHistoryMainBarProvider::getStaticSubItems ( )

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

Definition at line 30 of file LearningHistoryMainBarProvider.php.

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

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
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\LearningHistory\LearningHistoryMainBarProvider::getStaticTopItems ( )

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: