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
class.ilTestExpressPage.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
class
ilTestExpressPage
6
{
7
public
static
function
getReturnToPageLink
($q_id = null)
8
{
9
global
$DIC
;
10
$ilCtrl
= $DIC[
'ilCtrl'
];
11
12
$q_id = $q_id ? $q_id : $_REQUEST[
'q_id'
];
13
$refId
= self::fetchTargetRefIdParameter();
14
15
if
($_REQUEST[
'q_id'
]) {
16
$q_id = $q_id ? $q_id : (isset($_REQUEST[
'prev_qid'
]) ? $_REQUEST[
'prev_qid'
] : $_REQUEST[
'q_id'
]);
17
18
$ilCtrl
->setParameterByClass(
'iltestexpresspageobjectgui'
,
'test_express_mode'
, 1);
19
$ilCtrl
->setParameterByClass(
'iltestexpresspageobjectgui'
,
'ref_id'
,
$refId
);
20
$ilCtrl
->setParameterByClass(
'iltestexpresspageobjectgui'
,
'q_id'
, $q_id);
21
22
return
$ilCtrl
->getLinkTargetByClass(
23
array(
'ilobjtestgui'
,
'iltestexpresspageobjectgui'
),
24
'edit'
,
25
''
,
26
false
,
27
false
28
);
29
}
30
31
$ilCtrl
->setParameterByClass(
'ilobjtestgui'
,
'test_express_mode'
, 1);
32
$ilCtrl
->setParameterByClass(
'ilobjtestgui'
,
'ref_id'
,
$refId
);
33
34
return
$ilCtrl
->getLinkTargetByClass(
'ilobjtestgui'
,
'showQuestionsPerPage'
,
''
,
false
,
false
);
35
}
36
41
private
static
function
fetchTargetRefIdParameter
()
42
{
43
if
($_REQUEST[
'calling_test'
]) {
44
return
$_REQUEST[
'calling_test'
];
45
} elseif ($_REQUEST[
'test_ref_id'
]) {
46
return
$_REQUEST[
'test_ref_id'
];
47
}
48
49
return
$_REQUEST[
'ref_id'
];
50
}
51
}
$refId
$refId
Definition:
xapitoken.php:42
ilTestExpressPage
Definition:
class.ilTestExpressPage.php:5
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilTestExpressPage\getReturnToPageLink
static getReturnToPageLink($q_id=null)
Definition:
class.ilTestExpressPage.php:7
ilTestExpressPage\fetchTargetRefIdParameter
static fetchTargetRefIdParameter()
Definition:
class.ilTestExpressPage.php:41
$DIC
$DIC
Definition:
xapitoken.php:46
Modules
Test
classes
class.ilTestExpressPage.php
Generated on Sat Apr 5 2025 20:01:10 for ILIAS by
1.8.13 (using
Doxyfile
)