ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

@inheritDoc

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

Definition at line 29 of file SkillMainBarProvider.php.

29 : array
30 {
31 global $DIC;
32
33 $title = $this->dic->language()->txt("mm_skills");
34 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("skmg", $title)->withIsOutlined(true);
35 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::SKMG, $title)->withIsOutlined(true);
36
37 $ctrl = $DIC->ctrl();
38 return [
39 $this->mainmenu->link($this->if->identifier('mm_pd_skill'))
40 ->withTitle($title)
41 ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI", "ilAchievementsGUI","ilPersonalSkillsGUI"]))
42 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
43 ->withPosition(20)
44 ->withSymbol($icon)
45 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
46 ->withAvailableCallable(
47 function () {
48 $skmg_set = new ilSetting("skmg");
49
50 return (bool) ($skmg_set->get("enable_skmg"));
51 }
52 ),
53 ];
54 }
ILIAS Setting Class.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
$DIC
Definition: xapitoken.php:46

References $DIC, ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, 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 20 of file SkillMainBarProvider.php.

20 : array
21 {
22 return [];
23 }

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