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
CertificateMainBarProvider.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\Certificate\Provider
;
2
3
use
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
5
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
6
12
class
CertificateMainBarProvider
extends
AbstractStaticMainMenuProvider
13
{
14
18
public
function
getStaticTopItems
() : array
19
{
20
return
[];
21
}
22
23
27
public
function
getStaticSubItems
() : array
28
{
29
global
$DIC
;
30
31
$title = $this->dic->language()->txt(
"mm_certificates"
);
32
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"cert"
, $title)->withIsOutlined(
true
);
33
34
$access_helper =
BasicAccessCheckClosures::getInstance
();
35
36
$ctrl = $DIC->ctrl();
37
return
[
38
$this->mainmenu->link($this->
if
->identifier(
'mm_cert'
))
39
->withTitle($title)
40
->withAction($ctrl->getLinkTargetByClass([
"ilDashboardGUI"
,
41
"ilAchievementsGUI"
,
"ilUserCertificateGUI"
]))
42
->withParent(
StandardTopItemsProvider::getInstance
()->getAchievementsIdentification())
43
->withVisibilityCallable($access_helper->isUserLoggedIn())
44
->
withSymbol
($icon)
45
->withPosition(50),
46
];
47
}
48
}
ILIAS\Certificate\Provider\CertificateMainBarProvider
Class CertificateMainBarProvider.
Definition:
CertificateMainBarProvider.php:12
StandardTopItemsProvider
BasicAccessCheckClosures
ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures\getInstance
static getInstance()
Definition:
BasicAccessCheckClosures.php:34
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:14
ILIAS\Certificate\Provider\CertificateMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
CertificateMainBarProvider.php:18
AbstractStaticMainMenuProvider
ILIAS\Certificate\Provider\CertificateMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
CertificateMainBarProvider.php:27
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:55
ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol
withSymbol(Symbol $symbol)
Definition:
hasSymbolTrait.php:19
$DIC
$DIC
Definition:
xapitoken.php:46
ILIAS\Certificate\Provider
Definition:
CertificateMainBarProvider.php:1
Services
Certificate
classes
Provider
CertificateMainBarProvider.php
Generated on Wed Apr 9 2025 20:01:18 for ILIAS by
1.8.13 (using
Doxyfile
)