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
CertificateMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Certificate\Provider
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
24
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
25
use
ilCertificateActiveValidator
;
26
use
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosuresSingleton
;
27
32
class
CertificateMainBarProvider
extends
AbstractStaticMainMenuProvider
33
{
34
public
function
getStaticTopItems
(): array
35
{
36
return
[];
37
}
38
39
public
function
getStaticSubItems
(): array
40
{
41
global
$DIC
;
42
43
$title = $this->dic->language()->txt(
"mm_certificates"
);
44
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"cert"
, $title);
45
46
$ctrl = $DIC->ctrl();
47
return
[
48
$this->mainmenu
49
->link($this->
if
->identifier(
'mm_cert'
))
50
->withTitle($title)
51
->withAction(
52
$ctrl->getLinkTargetByClass(
53
[
54
\ilDashboardGUI::class,
55
\ilAchievementsGUI::class,
56
\ilUserCertificateGUI::class
57
]
58
)
59
)
60
->withParent(
StandardTopItemsProvider::getInstance
()->getAchievementsIdentification())
61
->withVisibilityCallable(
62
static
function
():
bool
{
63
return
(
64
(
BasicAccessCheckClosuresSingleton::getInstance
()->isUserLoggedIn())() &&
65
(
new
ilCertificateActiveValidator
())->validate()
66
);
67
}
68
)
69
->
withSymbol
($icon)
70
->withPosition(50),
71
];
72
}
73
}
ILIAS\Certificate\Provider\CertificateMainBarProvider
Class CertificateMainBarProvider.
Definition:
CertificateMainBarProvider.php:32
StandardTopItemsProvider
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
ILIAS\Certificate\Provider\CertificateMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
CertificateMainBarProvider.php:34
BasicAccessCheckClosuresSingleton
ilCertificateActiveValidator
AbstractStaticMainMenuProvider
ILIAS\Certificate\Provider\CertificateMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
CertificateMainBarProvider.php:39
$DIC
global $DIC
Definition:
feed.php:28
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
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:61
ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol
withSymbol(Symbol $symbol)
Definition:
hasSymbolTrait.php:38
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosuresSingleton\getInstance
static getInstance()
Definition:
BasicAccessCheckClosuresSingleton.php:43
ILIAS\Certificate\Provider
Definition:
CertificateMainBarProvider.php:21
Services
Certificate
classes
Provider
CertificateMainBarProvider.php
Generated on Tue Apr 1 2025 22:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)