ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Mail\Provider\MailMainBarProvider Class Reference

Class MailMainBarProvider. More...

+ Inheritance diagram for ILIAS\Mail\Provider\MailMainBarProvider:
+ Collaboration diagram for ILIAS\Mail\Provider\MailMainBarProvider:

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 (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
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

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

Definition at line 39 of file MailMainBarProvider.php.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), ilMailGlobalServices\getMailObjectRefId(), if, ILIAS\DI\Container\language(), ILIAS\UI\Component\Symbol\Icon\Standard\MAIL, ILIAS\DI\Container\rbac(), and ILIAS\DI\Container\user().

39  : array
40  {
41  $dic = $this->dic;
42 
43  $title = $this->dic->language()->txt("mm_mail");
44  $icon = $this->dic->ui()->factory()
45  ->symbol()
46  ->icon()
47  ->standard(Standard::MAIL, $title);
48 
49  return [
50  $this->mainmenu->link($this->if->identifier('mm_pd_mail'))
51  ->withTitle($title)
52  ->withAction('ilias.php?baseClass=ilMailGUI')
53  ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
54  ->withPosition(10)
55  ->withSymbol($icon)
56  ->withNonAvailableReason(
57  $this->dic->ui()->factory()->legacy($this->dic->language()->txt('component_not_active'))
58  )
59  ->withAvailableCallable(
60  static function () use ($dic): bool {
61  return !$dic->user()->isAnonymous() && $dic->user()->getId() !== 0;
62  }
63  )
64  ->withVisibilityCallable(
65  static function () use ($dic): bool {
66  return $dic->rbac()->system()->checkAccess(
67  'internal_mail',
69  );
70  }
71  ),
72  ];
73  }
user()
Get the current user.
Definition: Container.php:62
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
language()
Get interface to the i18n service.
Definition: Container.php:86
rbac()
Get interface to get interfaces to all things rbac.
Definition: Container.php:46
+ Here is the call graph for this function:

◆ getStaticTopItems()

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

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

Definition at line 34 of file MailMainBarProvider.php.

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

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