ILIAS
release_8 Revision v8.19
◀ 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
class.ilExerciseHandlerGUI.php
Go to the documentation of this file.
1
<?php
2
24
class
ilExerciseHandlerGUI
implements
ilCtrlBaseClassInterface
25
{
26
protected
ilCtrl
$ctrl
;
27
protected
ilLanguage
$lng
;
28
protected
ilAccessHandler
$access
;
29
protected
ilGlobalTemplateInterface
$tpl
;
30
protected
ilNavigationHistory
$nav_history
;
31
protected
int
$requested_ref_id
;
32
33
public
function
__construct
()
34
{
36
global
$DIC
;
37
38
$request = $DIC->exercise()->internal()->gui()->request();
39
$this->requested_ref_id = $request->getRefId();
40
41
$this->
lng
= $DIC->language();
42
$this->
access
= $DIC->access();
43
$this->tpl = $DIC[
"tpl"
];
44
$this->nav_history = $DIC[
"ilNavigationHistory"
];
45
$this->
ctrl
= $DIC->ctrl();
46
}
47
52
public
function
executeCommand
(): void
53
{
54
$ilAccess =
$this->access
;
55
$tpl =
$this->tpl
;
56
$ilNavigationHistory =
$this->nav_history
;
57
58
$next_class = $this->
ctrl
->getNextClass($this);
59
if
($next_class ==
""
) {
60
$this->
ctrl
->setCmdClass(
"ilobjexercisegui"
);
61
$next_class = $this->
ctrl
->getNextClass($this);
62
}
63
64
// add entry to navigation history
65
if
($ilAccess->checkAccess(
"read"
,
""
, $this->requested_ref_id)) {
66
$ilNavigationHistory->addItem(
67
$this->requested_ref_id,
68
"ilias.php?baseClass=ilExerciseHandlerGUI&cmd=showOverview&ref_id="
. $this->requested_ref_id,
69
"exc"
70
);
71
}
72
73
switch
($next_class) {
74
case
'ilobjexercisegui'
:
75
$ex_gui =
new
ilObjExerciseGUI
(
""
, $this->requested_ref_id,
true
);
76
$this->
ctrl
->forwardCommand($ex_gui);
77
break
;
78
}
79
80
$tpl->
printToStdout
();
81
}
82
}
ILIAS\Repository\access
access()
Definition:
trait.GlobalDICDomainServices.php:46
ilGlobalTemplateInterface\printToStdout
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
ilLanguage
ilExerciseHandlerGUI\executeCommand
executeCommand()
Definition:
class.ilExerciseHandlerGUI.php:52
ilGlobalTemplateInterface
ilObjExerciseGUI
Definition:
class.ilObjExerciseGUI.php:32
ilExerciseHandlerGUI\$ctrl
ilCtrl $ctrl
Definition:
class.ilExerciseHandlerGUI.php:26
ilCtrlBaseClassInterface
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
Definition:
interface.ilCtrlBaseClassInterface.php:23
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:52
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:56
ilExerciseHandlerGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilExerciseHandlerGUI.php:24
ilExerciseHandlerGUI\$access
ilAccessHandler $access
Definition:
class.ilExerciseHandlerGUI.php:28
ilAccessHandler
ilNavigationHistory
Navigation History of Repository Items.
Definition:
class.ilNavigationHistory.php:26
ilExerciseHandlerGUI\$requested_ref_id
int $requested_ref_id
Definition:
class.ilExerciseHandlerGUI.php:31
ilExerciseHandlerGUI\$tpl
ilGlobalTemplateInterface $tpl
Definition:
class.ilExerciseHandlerGUI.php:29
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilExerciseHandlerGUI\$lng
ilLanguage $lng
Definition:
class.ilExerciseHandlerGUI.php:27
ilExerciseHandlerGUI\$nav_history
ilNavigationHistory $nav_history
Definition:
class.ilExerciseHandlerGUI.php:30
ilCtrl
Modules
Exercise
classes
class.ilExerciseHandlerGUI.php
Generated on Tue Apr 1 2025 22:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)