ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LearningProgress\LPMainBarProvider Class Reference

Class LPMainBarProvider. More...

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

Public Member Functions

 getStaticTopItems ()
 @inheritDoc More...
 
 getStaticSubItems ()
 @inheritDoc More...
 
- 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\LearningProgress\LPMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 47 of file LPMainBarProvider.php.

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 )
81 ->withAvailableCallable(
82 function () {
85 }
86 ),
87 ];
88 }
if(!file_exists('../ilias.ini.php'))
global $DIC
Definition: shib_login.php:26

References $DIC, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_hasLearningProgressLearner(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), and if.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\LearningProgress\LPMainBarProvider::getStaticTopItems ( )

@inheritDoc

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: