ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
◀ 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
BadgeMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Badge\Provider
;
20
21
use
ilBadgeHandler
;
22
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
23
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
24
28
class
BadgeMainBarProvider
extends
AbstractStaticMainMenuProvider
29
{
30
public
function
getStaticTopItems
(): array
31
{
32
return
[];
33
}
34
35
public
function
getStaticSubItems
(): array
36
{
37
$title = $this->dic->language()->txt(
"mm_badges"
);
38
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"bdga"
, $title);
39
40
return
[
41
$this->mainmenu->link($this->
if
->identifier(
'mm_pd_badges'
))
42
->withTitle($title)
43
->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToBadges"
)
44
->withPosition(40)
45
->withParent(
StandardTopItemsProvider::getInstance
()->getAchievementsIdentification())
46
->withSymbol($icon)
47
->withNonAvailableReason($this->dic->ui()->factory()->legacy($this->dic->language()->txt(
'component_not_active'
)))
48
->withAvailableCallable(
49
function
() {
50
return
ilBadgeHandler::getInstance
()->isActive();
51
}
52
),
53
];
54
}
55
}
ILIAS\Badge\Provider\BadgeMainBarProvider
Definition:
BadgeMainBarProvider.php:28
StandardTopItemsProvider
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
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:61
ilBadgeHandler
ILIAS\Badge\Provider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
BadgeMainBarProvider.php:19
ILIAS\Badge\Provider\BadgeMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
BadgeMainBarProvider.php:30
ILIAS\Badge\Provider\BadgeMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
BadgeMainBarProvider.php:35
ilBadgeHandler\getInstance
static getInstance()
Definition:
class.ilBadgeHandler.php:54
Services
Badge
GlobalScreen
BadgeMainBarProvider.php
Generated on Wed Apr 23 2025 22:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)