ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 48 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().

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  }
if(!file_exists('../ilias.ini.php'))
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

◆ getStaticTopItems()

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

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: