ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
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\GlobalScreen\Provider\Provider\CertificateMainBarProvider
Class CertificateMainBarProvider.
Definition:
CertificateMainBarProvider.php:32
StandardTopItemsProvider
AbstractStaticMainMenuProvider
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
BasicAccessCheckClosuresSingleton
ilCertificateActiveValidator
AbstractStaticMainMenuProvider
ILIAS\GlobalScreen\Scope\withVisibilityCallable
withVisibilityCallable(callable $is_visible)
Definition:
VisibilityAvailabilityTrait.php:35
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:59
ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol
withSymbol(Symbol $symbol)
Definition:
hasSymbolTrait.php:38
$DIC
global $DIC
Definition:
shib_login.php:22
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosuresSingleton\getInstance
static getInstance()
Definition:
BasicAccessCheckClosuresSingleton.php:39
ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle
withTitle(string $title)
Definition:
hasTitleTrait.php:35
ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
CertificateMainBarProvider.php:39
ILIAS\GlobalScreen\Scope\Footer\Factory\withParent
withParent(IdentificationInterface $identification)
Definition:
canHaveParentTrait.php:42
ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
CertificateMainBarProvider.php:34
ILIAS\Certificate\Provider
Definition:
CertificateMainBarProvider.php:21
components
ILIAS
Certificate
classes
Provider
CertificateMainBarProvider.php
Generated on Sat Apr 5 2025 23:02:45 for ILIAS by
1.8.13 (using
Doxyfile
)