ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 
 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 (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
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

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

Definition at line 47 of file SkillMainBarProvider.php.

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

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  }
global $DIC
Definition: feed.php:28
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
+ Here is the call graph for this function:

◆ getStaticTopItems()

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

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: