ILIAS  release_7 Revision v7.30-3-g800a261c036
MailMainBarProvider.php
Go to the documentation of this file.
2
7
14{
15
19 public function getStaticTopItems() : array
20 {
21 return [];
22 }
23
24
28 public function getStaticSubItems() : 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 }
59}
An exception for terminatinating execution or to throw for unit testing.
Class for global mail information (e.g.
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
const ANONYMOUS_USER_ID
Definition: constants.php:25
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:11