ILIAS  release_8 Revision v8.24
CalendarMainBarProvider.php
Go to the documentation of this file.
1<?php
2
4
8
14{
18 public function getStaticTopItems(): array
19 {
20 return [];
21 }
22
26 public function getStaticSubItems(): 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 }
48}
Stores all calendar relevant settings.
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