ILIAS  release_7 Revision v7.30-3-g800a261c036
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 (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 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
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\LearningProgress\LPMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 27 of file LPMainBarProvider.php.

27 : array
28 {
29 global $DIC;
30
31 $title = $this->dic->language()->txt("mm_learning_progress");
32 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("trac", $title)->withIsOutlined(true);
33 $ctrl = $DIC->ctrl();
34 return [
35 $this->mainmenu->link($this->if->identifier('mm_pd_lp'))
36 ->withTitle($title)
37 ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI",
38 "ilAchievementsGUI","ilLearningProgressGUI","ilLPListOfProgressGUI"]))
39 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
40 ->withPosition(30)
41 ->withSymbol($icon)
42 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
43 ->withAvailableCallable(
44 function () {
48 }
49 ),
50 ];
51 }
static _enabledLearningProgress()
check wether learing progress is enabled or not
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
global $DIC
Definition: goto.php:24

References $DIC, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjUserTracking\_hasLearningProgressOtherUsers(), 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 18 of file LPMainBarProvider.php.

18 : array
19 {
20 return [];
21 }

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