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
LearningHistoryMainBarProvider.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\LearningHistory
;
2
3
use
ilAchievementsGUI
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
5
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
6
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
7
use
ilLearningHistoryGUI
;
8
use
ilDashboardGUI
;
9
15
class
LearningHistoryMainBarProvider
extends
AbstractStaticMainMenuProvider
16
{
17
21
public
function
getStaticTopItems
() : array
22
{
23
return
[];
24
}
25
26
30
public
function
getStaticSubItems
() : array
31
{
32
global
$DIC
;
33
34
$entries = [];
35
36
$settings = $DIC->settings();
37
38
$title = $this->dic->language()->txt(
"mm_learning_history"
);
39
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::LHTS
, $title)->withIsOutlined(
true
);
40
41
$entries[] = $this->mainmenu->link($this->
if
->identifier(
'learning_history'
))
42
->withTitle($title)
43
->withAction($this->dic->ctrl()->getLinkTargetByClass([
44
ilDashboardGUI::class,
45
ilAchievementsGUI::class,
46
ilLearningHistoryGUI::class,
47
],
""
))
48
->withParent(
StandardTopItemsProvider::getInstance
()->getAchievementsIdentification())
49
->withPosition(10)
50
->withSymbol($icon)
51
->withAvailableCallable(
52
function
() use ($settings) {
53
return
(
bool
) $settings->get(
"enable_learning_history"
);
54
}
55
);
56
57
return
$entries;
58
}
59
}
ILIAS\LearningHistory\LearningHistoryMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
LearningHistoryMainBarProvider.php:30
StandardTopItemsProvider
ILIAS\LearningHistory
Definition:
LearningHistoryMainBarProvider.php:1
Standard
ILIAS\UI\Component\Symbol\Icon\Standard\LHTS
const LHTS
Definition:
Standard.php:124
ilDashboardGUI
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:14
AbstractStaticMainMenuProvider
ilAchievementsGUI
if
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition:
confirmReg.php:12
ilLearningHistoryGUI
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:55
ILIAS\LearningHistory\LearningHistoryMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
LearningHistoryMainBarProvider.php:21
ILIAS\LearningHistory\LearningHistoryMainBarProvider
Class LearningHistoryMainBarProvider.
Definition:
LearningHistoryMainBarProvider.php:15
$DIC
$DIC
Definition:
xapitoken.php:46
Services
LearningHistory
classes
Provider
LearningHistoryMainBarProvider.php
Generated on Thu Apr 3 2025 20:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)