ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 @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 (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 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
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Mail\Provider\MailMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 28 of file MailMainBarProvider.php.

28 : array
29 {
31
32 $title = $this->dic->language()->txt("mm_mail");
33 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::MAIL, $title)
34 ->withIsOutlined(true);
35
36 return [
37 $this->mainmenu->link($this->if->identifier('mm_pd_mail'))
38 ->withTitle($title)
39 ->withAction("ilias.php?baseClass=ilMailGUI")
40 ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
41 ->withPosition(10)
42 ->withSymbol($icon)
43 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
44 ->withAvailableCallable(
45 function () use ($dic) {
46 return ($dic->user()->getId() != ANONYMOUS_USER_ID);
47 }
48 )
49 ->withVisibilityCallable(
50 function () use ($dic) {
51 return $dic->rbac()->system()->checkAccess(
52 'internal_mail',
54 );
55 }
56 ),
57 ];
58 }
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

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

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Mail\Provider\MailMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 19 of file MailMainBarProvider.php.

19 : array
20 {
21 return [];
22 }

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