ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:10