ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Badge\Provider\BadgeMainBarProvider Class Reference

Class BadgeMainBarProvider. More...

+ Inheritance diagram for ILIAS\Badge\Provider\BadgeMainBarProvider:
+ Collaboration diagram for ILIAS\Badge\Provider\BadgeMainBarProvider:

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\Badge\Provider\BadgeMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 27 of file BadgeMainBarProvider.php.

27 : array
28 {
29 $title = $this->dic->language()->txt("mm_badges");
30 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("bdga", $title)->withIsOutlined(true);
31
32 return [
33 $this->mainmenu->link($this->if->identifier('mm_pd_badges'))
34 ->withTitle($title)
35 ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToBadges")
36 ->withPosition(40)
37 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
38 ->withSymbol($icon)
39 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
40 ->withAvailableCallable(
41 function () {
42 return (bool) (ilBadgeHandler::getInstance()->isActive());
43 }
44 ),
45 ];
46 }
static getInstance()
Constructor.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

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

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Badge\Provider\BadgeMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 18 of file BadgeMainBarProvider.php.

18 : array
19 {
20 return [];
21 }

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