ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Badge\Provider\BadgeMainBarProvider Class Reference
+ Inheritance diagram for ILIAS\Badge\Provider\BadgeMainBarProvider:
+ Collaboration diagram for ILIAS\Badge\Provider\BadgeMainBarProvider:

Public Member Functions

 getStaticTopItems ()
 
 getStaticSubItems ()
 
- 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\Badge\Provider\BadgeMainBarProvider::getStaticSubItems ( )
Returns
isItem[] These are Entries which will be available for configuration.

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

Definition at line 35 of file BadgeMainBarProvider.php.

35 : array
36 {
37 $title = $this->dic->language()->txt("mm_badges");
38 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("bdga", $title);
39
40 return [
41 $this->mainmenu->link($this->if->identifier('mm_pd_badges'))
42 ->withTitle($title)
43 ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToBadges")
44 ->withPosition(40)
45 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
46 ->withSymbol($icon)
47 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content($this->dic->language()->txt('component_not_active')))
48 ->withAvailableCallable(
49 function () {
50 return ilBadgeHandler::getInstance()->isActive();
51 }
52 ),
53 ];
54 }
if(!file_exists('../ilias.ini.php'))

References ilBadgeHandler\getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), and if.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Badge\Provider\BadgeMainBarProvider::getStaticTopItems ( )
Returns
TopParentItem[] These are Slates which will be available for configuration.

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

Definition at line 30 of file BadgeMainBarProvider.php.

30 : array
31 {
32 return [];
33 }

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