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