ILIAS  release_8 Revision v8.24
ILIAS\Calendar\Provider\CalendarMainBarProvider Class Reference

Class CalendarMainBarProvider. More...

+ Inheritance diagram for ILIAS\Calendar\Provider\CalendarMainBarProvider:
+ Collaboration diagram for ILIAS\Calendar\Provider\CalendarMainBarProvider:

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
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Calendar\Provider\CalendarMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 26 of file CalendarMainBarProvider.php.

26 : array
27 {
28 $title = $this->dic->language()->txt("mm_calendar");
29 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("cals", $title);
30
31 return [
32 $this->mainmenu->link($this->if->identifier('mm_pd_cal'))
33 ->withTitle($title)
34 ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToCalendar")
35 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
36 ->withPosition(30)
37 ->withSymbol($icon)
38 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
39 ->withAvailableCallable(
40 function () {
42
43 return $settings->isEnabled();
44 }
45 ),
46 ];
47 }
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
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200

References ILIAS\LTI\ToolProvider\$settings, ilCalendarSettings\_getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), and if.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Calendar\Provider\CalendarMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 18 of file CalendarMainBarProvider.php.

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

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