ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Portfolio\Provider\PortfolioMainBarProvider Class Reference

Class PortfolioMainBarProvider. More...

+ Inheritance diagram for ILIAS\Portfolio\Provider\PortfolioMainBarProvider:
+ Collaboration diagram for ILIAS\Portfolio\Provider\PortfolioMainBarProvider:

Public Member Functions

 getStaticTopItems ()
 
 getStaticSubItems ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 __construct (Container $dic)
 
 getAllIdentifications ()
 
 provideTypeInformation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Portfolio\Provider\PortfolioMainBarProvider::getStaticSubItems ( )
Returns
isItem[] These are Entries which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 35 of file PortfolioMainBarProvider.php.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, if, ILIAS\DI\Container\language(), ILIAS\DI\Container\settings(), ILIAS\GlobalScreen\Scope\withAvailableCallable(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().

35  : array
36  {
37  $dic = $this->dic;
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'))))
51  function () use ($dic) {
52  return (bool) ($dic->settings()->get('user_portfolios'));
53  }
54  ),
55  ];
56  }
if(!file_exists('../ilias.ini.php'))
withAvailableCallable(callable $is_available)
language()
Get interface to the i18n service.
Definition: Container.php:95
settings()
Get the interface to the settings.
Definition: Container.php:135
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Portfolio\Provider\PortfolioMainBarProvider::getStaticTopItems ( )
Returns
TopParentItem[] These are Slates which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 30 of file PortfolioMainBarProvider.php.

30  : array
31  {
32  return [];
33  }

The documentation for this class was generated from the following file: