ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 @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

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.

35 : array
36 {
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 )
58 ->withVisibilityCallable(
59 static fn(): bool => $dic->rbac()->system()->checkAccess(
60 'internal_mail',
62 )
63 ),
64 ];
65 }
user()
Get the current user.
Definition: Container.php:71
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
if(!file_exists('../ilias.ini.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().

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