ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 (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\Skill\Provider\SkillMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 48 of file SkillMainBarProvider.php.

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

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 39 of file SkillMainBarProvider.php.

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

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