ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
MailMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Mail\Provider
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
24
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
25
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
26
use
ilMailGlobalServices
;
27
32
class
MailMainBarProvider
extends
AbstractStaticMainMenuProvider
33
{
34
public
function
getStaticTopItems
(): array
35
{
36
return
[];
37
}
38
39
public
function
getStaticSubItems
(): array
40
{
41
$dic
=
$this->dic
;
42
43
$title = $this->dic->
language
()->txt(
"mm_mail"
);
44
$icon = $this->dic->ui()->factory()
45
->symbol()
46
->icon()
47
->standard(
Standard::MAIL
, $title);
48
49
return
[
50
$this->mainmenu->link($this->
if
->identifier(
'mm_pd_mail'
))
51
->withTitle($title)
52
->withAction(
'ilias.php?baseClass=ilMailGUI'
)
53
->withParent(
StandardTopItemsProvider::getInstance
()->getCommunicationIdentification())
54
->withPosition(10)
55
->withSymbol($icon)
56
->withNonAvailableReason(
57
$this->dic->ui()->factory()->legacy($this->dic->language()->txt(
'component_not_active'
))
58
)
59
->withAvailableCallable(
60
static
function
() use (
$dic
):
bool
{
61
return
!
$dic
->
user
()->isAnonymous() &&
$dic
->
user
()->getId() !== 0;
62
}
63
)
64
->withVisibilityCallable(
65
static
function
() use (
$dic
):
bool
{
66
return
$dic
->
rbac
()->system()->checkAccess(
67
'internal_mail'
,
68
ilMailGlobalServices::getMailObjectRefId
()
69
);
70
}
71
),
72
];
73
}
74
}
ILIAS\Mail\Provider\MailMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
MailMainBarProvider.php:39
ILIAS\DI\Container\user
user()
Get the current user.
Definition:
Container.php:62
StandardTopItemsProvider
Standard
ILIAS\Mail\Provider
Definition:
MailGlobalScreenToolProvider.php:21
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
AbstractStaticMainMenuProvider
if
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
confirmReg.php:20
ilMailGlobalServices
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:61
ILIAS\DI\Container\language
language()
Get interface to the i18n service.
Definition:
Container.php:86
ILIAS\DI\Container\rbac
rbac()
Get interface to get interfaces to all things rbac.
Definition:
Container.php:46
ILIAS\Mail\Provider\MailMainBarProvider
Class MailMainBarProvider.
Definition:
MailMainBarProvider.php:32
ilMailGlobalServices\getMailObjectRefId
static getMailObjectRefId()
Definition:
class.ilMailGlobalServices.php:35
ILIAS\UI\Component\Symbol\Icon\Standard\MAIL
const MAIL
Definition:
Standard.php:34
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic
Container $dic
Definition:
AbstractStaticMainMenuProvider.php:34
ILIAS\Mail\Provider\MailMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
MailMainBarProvider.php:34
Services
Mail
classes
Provider
MailMainBarProvider.php
Generated on Tue Apr 1 2025 22:02:25 for ILIAS by
1.8.13 (using
Doxyfile
)