ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
MailMainBarProvider.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\Mail\Provider
;
2
3
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
4
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
5
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
6
use
ilMailGlobalServices
;
7
13
class
MailMainBarProvider
extends
AbstractStaticMainMenuProvider
14
{
15
19
public
function
getStaticTopItems
() : array
20
{
21
return
[];
22
}
23
24
28
public
function
getStaticSubItems
() : array
29
{
30
$dic
=
$this->dic
;
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'
,
53
ilMailGlobalServices::getMailObjectRefId
()
54
);
55
}
56
),
57
];
58
}
59
}
ILIAS\Mail\Provider\MailMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
MailMainBarProvider.php:28
StandardTopItemsProvider
Standard
ILIAS\Mail\Provider
Definition:
MailMainBarProvider.php:1
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:14
AbstractStaticMainMenuProvider
if
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition:
confirmReg.php:12
ilMailGlobalServices
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:55
ILIAS\Mail\Provider\MailMainBarProvider
Class MailMainBarProvider.
Definition:
MailMainBarProvider.php:13
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic
$dic
Definition:
AbstractStaticMainMenuProvider.php:20
ilMailGlobalServices\getMailObjectRefId
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable...
Definition:
class.ilMailGlobalServices.php:52
ILIAS\UI\Component\Symbol\Icon\Standard\MAIL
const MAIL
Definition:
Standard.php:18
ILIAS\Mail\Provider\MailMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
MailMainBarProvider.php:19
Services
Mail
classes
Provider
MailMainBarProvider.php
Generated on Wed Apr 9 2025 20:01:24 for ILIAS by
1.8.13 (using
Doxyfile
)