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
BadgeMainBarProvider.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\Badge\Provider
;
2
3
use
ilBadgeHandler
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
5
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
6
12
class
BadgeMainBarProvider
extends
AbstractStaticMainMenuProvider
13
{
14
18
public
function
getStaticTopItems
() : array
19
{
20
return
[];
21
}
22
23
27
public
function
getStaticSubItems
() : array
28
{
29
$title = $this->dic->language()->txt(
"mm_badges"
);
30
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"bdga"
, $title)->withIsOutlined(
true
);
31
32
return
[
33
$this->mainmenu->link($this->
if
->identifier(
'mm_pd_badges'
))
34
->withTitle($title)
35
->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToBadges"
)
36
->withPosition(40)
37
->withParent(
StandardTopItemsProvider::getInstance
()->getAchievementsIdentification())
38
->withSymbol($icon)
39
->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"
))
40
->withAvailableCallable(
41
function
() {
42
return
(
bool
) (
ilBadgeHandler::getInstance
()->isActive());
43
}
44
),
45
];
46
}
47
}
ILIAS\Badge\Provider\BadgeMainBarProvider
Class BadgeMainBarProvider.
Definition:
BadgeMainBarProvider.php:12
StandardTopItemsProvider
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
AbstractStaticMainMenuProvider
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
ilBadgeHandler
ILIAS\Badge\Provider
Definition:
BadgeMainBarProvider.php:1
ILIAS\Badge\Provider\BadgeMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
BadgeMainBarProvider.php:18
ILIAS\Badge\Provider\BadgeMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
BadgeMainBarProvider.php:27
ilBadgeHandler\getInstance
static getInstance()
Constructor.
Definition:
class.ilBadgeHandler.php:51
Services
Badge
GlobalScreen
BadgeMainBarProvider.php
Generated on Sun Apr 13 2025 21:01:20 for ILIAS by
1.8.13 (using
Doxyfile
)