ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 42 of file CalendarMainBarProvider.php.

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

42  : array
43  {
44  $title = $this->dic->language()->txt("mm_calendar");
45  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("cals", $title);
46 
47  return [
48  $this->mainmenu->link($this->if->identifier('mm_pd_cal'))
49  ->withTitle($title)
50  ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToCalendar")
51  ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
52  ->withPosition(30)
53  ->withSymbol($icon)
54  ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content("{$this->dic->language()->txt('component_not_active')}"))
56  function () {
58 
59  return $settings->isEnabled();
60  }
61  ),
62  ];
63  }
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 34 of file CalendarMainBarProvider.php.

34  : array
35  {
36  return [];
37  }

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