ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMailGlobalScreenProvider.php
Go to the documentation of this file.
1<?php
2
5
12{
13
17 protected $top_item;
18
19
20 public function __construct(\ILIAS\DI\Container $dic)
21 {
22 parent::__construct($dic);
23 $this->top_item = (new ilPDGlobalScreenProvider($dic))->getTopItem();
24 }
25
26
35 {
36 return $this->top_item;
37 }
38
39
43 public function getStaticTopItems() : array
44 {
45 return [];
46 }
47
48
52 public function getStaticSubItems() : array
53 {
55
56 return [$this->mainmenu->link($this->if->identifier('mm_pd_mail'))
57 ->withTitle($this->dic->language()->txt("mail"))
58 ->withAction("ilias.php?baseClass=ilMailGUI")
59 ->withParent($this->getTopItem())
60 ->withPosition(8)
61 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
62 ->withAvailableCallable(
63 function () use ($dic) {
64 return ($dic->user()->getId() != ANONYMOUS_USER_ID);
65 }
66 )
67 ->withVisibilityCallable(
68 function () use ($dic) {
69 return $dic->rbac()->system()->checkAccess(
70 'internal_mail',
72 );
73 }
74 ),
75 ];
76 }
77}
An exception for terminatinating execution or to throw for unit testing.
Class ilMailGlobalScreenProvider.
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable.
Class ilPDGlobalScreenProvider.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
Class HTTPServicesTest.
Class BaseForm.