ILIAS  release_8 Revision v8.23
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 ()
 
 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\Calendar\Provider\CalendarMainBarProvider::getStaticSubItems ( )

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

Definition at line 26 of file CalendarMainBarProvider.php.

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

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  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
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\Calendar\Provider\CalendarMainBarProvider::getStaticTopItems ( )

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: