ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 (protected 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
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

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

Definition at line 49 of file SkillMainBarProvider.php.

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

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

◆ getStaticTopItems()

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

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

Definition at line 40 of file SkillMainBarProvider.php.

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

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