ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
DerivedTaskMainBarProvider.php
Go to the documentation of this file.
2 
6 
13 {
14 
18  public function getStaticTopItems() : array
19  {
20  return [];
21  }
22 
23 
27  public function getStaticSubItems() : array
28  {
29  $dic = $this->dic;
30 
31  $title = $this->dic->language()->txt("mm_task_derived_tasks");
32  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::TASK, $title)->withIsOutlined(true);
33 
34  // derived tasks list
35  $entries[] = $this->mainmenu->link($this->if->identifier('mm_derived_task_list'))
36  ->withTitle($title)
37  ->withPosition(40)
38  ->withSymbol($icon)
39  ->withAction($dic->ctrl()->getLinkTargetByClass(["ilDerivedTasksGUI"], ""))
40  ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
41  ->withVisibilityCallable(
42  function () use ($dic) {
43  return true;
44  }
45  );
46 
47  return $entries;
48  }
49 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12