ILIAS  release_8 Revision v8.24
ILIAS\Skill\Provider\SkillMainBarProvider Class Reference

Class SkillMainBarProvider. More...

+ Inheritance diagram for ILIAS\Skill\Provider\SkillMainBarProvider:
+ Collaboration diagram for ILIAS\Skill\Provider\SkillMainBarProvider:

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
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Skill\Provider\SkillMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 47 of file SkillMainBarProvider.php.

47 : array
48 {
49 global $DIC;
50
51 $title = $this->dic->language()->txt("mm_skills");
52 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("skmg", $title);
53 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::SKMG, $title);
54
55 $ctrl = $DIC->ctrl();
56 $ctrl->clearParametersByClass("ilPersonalSkillsGUI");
57 $ctrl->setParameterByClass("ilPersonalSkillsGUI", "list_mode", \ilPersonalSkillsGUI::LIST_PROFILES);
58 $link = $ctrl->getLinkTargetByClass(["ilDashboardGUI", "ilAchievementsGUI", "ilPersonalSkillsGUI"]);
59 $ctrl->clearParameterByClass("ilPersonalSkillsGUI", "list_mode");
60 return [
61 $this->mainmenu->link($this->if->identifier('mm_pd_skill'))
62 ->withTitle($title)
63 ->withAction($link)
64 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
65 ->withPosition(20)
66 ->withSymbol($icon)
67 ->withNonAvailableReason($this->dic->ui()->factory()->legacy($this->dic->language()->txt('component_not_active')))
68 ->withAvailableCallable(
69 static function (): bool {
70 $skmg_set = new ilSetting("skmg");
71
72 return (bool) ($skmg_set->get("enable_skmg"));
73 }
74 ),
75 ];
76 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
global $DIC
Definition: feed.php:28

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

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Skill\Provider\SkillMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 38 of file SkillMainBarProvider.php.

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

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