ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 28 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().

28  : array
29  {
30  global $DIC;
31 
32  $title = $this->dic->language()->txt("mm_learning_progress");
33  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
34  "trac",
35  $title
36  );
37  $ctrl = $DIC->ctrl();
38 
39  return [
40  $this->mainmenu->link($this->if->identifier('mm_pd_lp'))
41  ->withTitle($title)
42  ->withAction(
43  $ctrl->getLinkTargetByClass(
44  ["ilDashboardGUI",
45  "ilAchievementsGUI",
46  "ilLearningProgressGUI",
47  'ilLPListOfProgressGUI'
48  ]
49  )
50  )
51  ->withParent(
53  )->getAchievementsIdentification()
54  )
55  ->withPosition(30)
56  ->withSymbol($icon)
57  ->withNonAvailableReason(
58  $this->dic->ui()->factory()->legacy(
59  "{$this->dic->language()->txt('component_not_active')}"
60  )
61  )
63  function () {
66  }
67  ),
68  ];
69  }
if(!file_exists('../ilias.ini.php'))
withAvailableCallable(callable $is_available)
global $DIC
Definition: shib_login.php:25
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 20 of file LPMainBarProvider.php.

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

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