ILIAS  release_8 Revision v8.23
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)
 
 getAllIdentifications ()
 
 provideTypeInformation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (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
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

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.

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

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($this->dic->language()->txt('component_not_active')))
48  ->withAvailableCallable(
49  function () {
50  return ilBadgeHandler::getInstance()->isActive();
51  }
52  ),
53  ];
54  }
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
+ 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: