ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Mail\Provider\MailMainBarProvider Class Reference
+ 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 (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

Definition at line 28 of file MailMainBarProvider.php.

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 35 of file MailMainBarProvider.php.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, ilMailGlobalServices\getMailObjectRefId(), if, ILIAS\DI\Container\language(), ILIAS\DI\Container\rbac(), ILIAS\DI\Container\user(), ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle(), and ILIAS\GlobalScreen\Scope\withVisibilityCallable().

35  : array
36  {
37  $dic = $this->dic;
38 
39  $title = $this->dic->language()->txt('mm_mail');
40  $icon = $this->dic->ui()->factory()
41  ->symbol()
42  ->icon()
43  ->standard(Standard::MAIL, $title);
44 
45  return [
46  $this->mainmenu->link($this->if->identifier('mm_pd_mail'))
47  ->withTitle($title)
48  ->withAction('ilias.php?baseClass=ilMailGUI')
49  ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
50  ->withPosition(10)
51  ->withSymbol($icon)
52  ->withNonAvailableReason(
53  $this->dic->ui()->factory()->legacy()->content($this->dic->language()->txt('component_not_active'))
54  )
55  ->withAvailableCallable(
56  static fn(): bool => !$dic->user()->isAnonymous() && $dic->user()->getId() !== 0
57  )
59  static fn(): bool => $dic->rbac()->system()->checkAccess(
60  'internal_mail',
62  )
63  ),
64  ];
65  }
user()
Get the current user.
Definition: Container.php:71
if(!file_exists('../ilias.ini.php'))
withVisibilityCallable(callable $is_visible)
language()
Get interface to the i18n service.
Definition: Container.php:95
rbac()
Get interface to get interfaces to all things rbac.
Definition: Container.php:55
+ 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 30 of file MailMainBarProvider.php.

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

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