ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\LearningProgress\LPMainBarProvider Class Reference

Class LPMainBarProvider. More...

+ Inheritance diagram for ILIAS\LearningProgress\LPMainBarProvider:
+ Collaboration diagram for ILIAS\LearningProgress\LPMainBarProvider:

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

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\LearningProgress\LPMainBarProvider::getStaticSubItems ( )

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

Definition at line 47 of file LPMainBarProvider.php.

References $DIC, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_hasLearningProgressLearner(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, ILIAS\GlobalScreen\Scope\withAvailableCallable(), ILIAS\GlobalScreen\Scope\Footer\Factory\withParent(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().

47  : array
48  {
49  global $DIC;
50 
51  $title = $this->dic->language()->txt("mm_learning_progress");
52  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
53  "trac",
54  $title
55  );
56  $ctrl = $DIC->ctrl();
57 
58  return [
59  $this->mainmenu->link($this->if->identifier('mm_pd_lp'))
60  ->withTitle($title)
61  ->withAction(
62  $ctrl->getLinkTargetByClass(
63  [
64  ilDashboardGUI::class,
65  ilAchievementsGUI::class,
66  ilLPPersonalGUI::class
67  ]
68  )
69  )
70  ->withParent(
72  )->getAchievementsIdentification()
73  )
74  ->withPosition(30)
75  ->withSymbol($icon)
76  ->withNonAvailableReason(
77  $this->dic->ui()->factory()->legacy()->content(
78  "{$this->dic->language()->txt('component_not_active')}"
79  )
80  )
82  function () {
85  }
86  ),
87  ];
88  }
if(!file_exists('../ilias.ini.php'))
withAvailableCallable(callable $is_available)
global $DIC
Definition: shib_login.php:22
withParent(IdentificationInterface $identification)
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\LearningProgress\LPMainBarProvider::getStaticTopItems ( )

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

Definition at line 39 of file LPMainBarProvider.php.

39  : array
40  {
41  return [];
42  }

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