ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PortfolioMainBarProvider.php
Go to the documentation of this file.
1<?php
2
20
23
29{
30 public function getStaticTopItems(): array
31 {
32 return [];
33 }
34
35 public function getStaticSubItems(): array
36 {
38
39 $title = $this->dic->language()->txt("mm_portfolio");
40 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("prfa", $title);
41
42 return [
43 $this->mainmenu->link($this->if->identifier('mm_pd_port'))
44 ->withTitle($title)
45 ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToPortfolio")
46 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
47 ->withPosition(50)
48 ->withSymbol($icon)
49 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content(($this->dic->language()->txt('component_not_active'))))
50 ->withAvailableCallable(
51 function () use ($dic) {
52 return (bool) ($dic->settings()->get('user_portfolios'));
53 }
54 ),
55 ];
56 }
57}
language()
Get interface to the i18n service.
Definition: Container.php:95
settings()
Get the interface to the settings.
Definition: Container.php:135
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))