ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 
 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\PersonalWorkspace\Provider\WorkspaceMainBarProvider::getStaticSubItems ( )

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

Definition at line 43 of file class.WorkspaceMainBarProvider.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().

43  : array
44  {
45  $dic = $this->dic;
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')}"))
58  function () use ($dic) {
59  return !$dic->settings()->get("disable_personal_workspace");
60  }
61  ),
62  ];
63  }
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\PersonalWorkspace\Provider\WorkspaceMainBarProvider::getStaticTopItems ( )

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: