ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
CalendarMainBarProvider.php
Go to the documentation of this file.
1 <?php namespace ILIAS\Calendar\Provider;
2 
6 
13 {
14 
18  public function getStaticTopItems() : array
19  {
20  return [];
21  }
22 
23 
27  public function getStaticSubItems() : array
28  {
29  $title = $this->dic->language()->txt("mm_calendar");
30  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("cals", $title)->withIsOutlined(true);
31 
32  return [
33  $this->mainmenu->link($this->if->identifier('mm_pd_cal'))
34  ->withTitle($title)
35  ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToCalendar")
36  ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
37  ->withPosition(30)
38  ->withSymbol($icon)
39  ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
40  ->withAvailableCallable(
41  function () {
43 
44  return (bool) ($settings->isEnabled());
45  }
46  ),
47  ];
48  }
49 }
static _getInstance()
get singleton instance
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12