ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
CalendarMainBarProvider.php
Go to the documentation of this file.
1 <?php
2 
20 
24 
30 {
34  public function getStaticTopItems(): array
35  {
36  return [];
37  }
38 
42  public function getStaticSubItems(): 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  }
64 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))
withAvailableCallable(callable $is_available)