ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\PersonalWorkspace\Provider\WorkspaceMainBarProvider Class Reference

Class WorkspaceMainBarProvider. More...

+ Inheritance diagram for ILIAS\PersonalWorkspace\Provider\WorkspaceMainBarProvider:
+ Collaboration diagram for ILIAS\PersonalWorkspace\Provider\WorkspaceMainBarProvider:

Public Member Functions

 getStaticTopItems ()
 @inheritDoc More...
 
 getStaticSubItems ()
 @inheritDoc More...
 
- 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\PersonalWorkspace\Provider\WorkspaceMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 43 of file class.WorkspaceMainBarProvider.php.

43 : array
44 {
46
47 $title = $this->dic->language()->txt("mm_personal_and_shared_r");
48 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("fold", $title);
49 return [
50 $this->mainmenu->link($this->if->identifier('mm_pd_wsp'))
51 ->withTitle($title)
52 ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToWorkspace")
53 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
54 ->withPosition(60)
55 ->withSymbol($icon)
56 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content("{$this->dic->language()->txt('component_not_active')}"))
57 ->withAvailableCallable(
58 function () use ($dic) {
59 return !$dic->settings()->get("disable_personal_workspace");
60 }
61 ),
62 ];
63 }
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\PersonalWorkspace\Provider\WorkspaceMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 34 of file class.WorkspaceMainBarProvider.php.

34 : array
35 {
36 return [];
37 }

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