ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
◀ 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
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()->content($this->dic->language()->txt(
'component_not_active'
)))
48
->withAvailableCallable(
49
function
() {
50
return
ilBadgeHandler::getInstance
()->isActive();
51
}
52
),
53
];
54
}
55
}
ILIAS\GlobalScreen\Provider\Provider\BadgeMainBarProvider
Definition:
BadgeMainBarProvider.php:28
StandardTopItemsProvider
AbstractStaticMainMenuProvider
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
ILIAS\GlobalScreen\Provider\Provider\BadgeMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
BadgeMainBarProvider.php:35
AbstractStaticMainMenuProvider
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:59
ilBadgeHandler
ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle
withTitle(string $title)
Definition:
hasTitleTrait.php:35
ILIAS\GlobalScreen\Provider\Provider\BadgeMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
BadgeMainBarProvider.php:30
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
ilBadgeHandler\getInstance
static getInstance()
Definition:
class.ilBadgeHandler.php:54
components
ILIAS
Badge
GlobalScreen
BadgeMainBarProvider.php
Generated on Wed Apr 9 2025 23:02:36 for ILIAS by
1.8.13 (using
Doxyfile
)