ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 @inheritDoc More...
 
 getAllIdentifications ()
 @inheritDoc More...
 
 provideTypeInformation ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getStaticTopItems ()
 
 getStaticSubItems ()
 
 provideTypeInformation ()
 
 getAllIdentifications ()
 

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.

35 : 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 }
language()
Get interface to the i18n service.
Definition: Container.php:95
settings()
Get the interface to the settings.
Definition: Container.php:135
if(!file_exists('../ilias.ini.php'))

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, ILIAS\DI\Container\language(), and ILIAS\DI\Container\settings().

+ 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: