ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\GlobalScreen\Provider\Provider\CalendarMainBarProvider Class Reference

Class CalendarMainBarProvider. More...

+ Inheritance diagram for ILIAS\GlobalScreen\Provider\Provider\CalendarMainBarProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Provider\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 (protected 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
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

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

Definition at line 26 of file CalendarMainBarProvider.php.

References ilCalendarSettings\_getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, ILIAS\GlobalScreen\Scope\withAvailableCallable(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().

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')}"))
40  function () {
42 
43  return $settings->isEnabled();
44  }
45  ),
46  ];
47  }
if(!file_exists('../ilias.ini.php'))
withAvailableCallable(callable $is_available)
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\GlobalScreen\Provider\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: