ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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
CertificateMainBarProvider.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\Certificate\Provider
;
2
3
use
ilCertificateActiveValidator
;
4
use
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
6
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
7
13
class
CertificateMainBarProvider
extends
AbstractStaticMainMenuProvider
14
{
15
19
public
function
getStaticTopItems
() : array
20
{
21
return
[];
22
}
23
24
28
public
function
getStaticSubItems
() : array
29
{
30
global
$DIC
;
31
32
$title = $this->dic->language()->txt(
"mm_certificates"
);
33
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"cert"
, $title)->withIsOutlined(
true
);
34
35
$ctrl = $DIC->ctrl();
36
return
[
37
$this->mainmenu->link($this->
if
->identifier(
'mm_cert'
))
38
->withTitle($title)
39
->withAction($ctrl->getLinkTargetByClass([
"ilDashboardGUI"
,
40
"ilAchievementsGUI"
,
"ilUserCertificateGUI"
]))
41
->withParent(
StandardTopItemsProvider::getInstance
()->getAchievementsIdentification())
42
->withVisibilityCallable(
43
static
function
() :
bool
{
44
return
(
45
(
BasicAccessCheckClosures::getInstance
()->isUserLoggedIn())() &&
46
(
new
ilCertificateActiveValidator
())->validate()
47
);
48
}
49
)
50
->
withSymbol
($icon)
51
->withPosition(50),
52
];
53
}
54
}
ILIAS\Certificate\Provider\CertificateMainBarProvider
Class CertificateMainBarProvider.
Definition:
CertificateMainBarProvider.php:13
StandardTopItemsProvider
BasicAccessCheckClosures
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures\getInstance
static getInstance()
Definition:
BasicAccessCheckClosures.php:34
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
ILIAS\Certificate\Provider\CertificateMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
CertificateMainBarProvider.php:19
ilCertificateActiveValidator
AbstractStaticMainMenuProvider
ILIAS\Certificate\Provider\CertificateMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
CertificateMainBarProvider.php:28
if
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition:
confirmReg.php:12
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:71
ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol
withSymbol(Symbol $symbol)
Definition:
hasSymbolTrait.php:41
$DIC
global $DIC
Definition:
goto.php:24
ILIAS\Certificate\Provider
Definition:
CertificateMainBarProvider.php:1
Services
Certificate
classes
Provider
CertificateMainBarProvider.php
Generated on Wed Apr 23 2025 21:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)