ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
}
$DIC
global $DIC
Definition:
saml.php:7
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
php
Modules
Test
classes
class.ilTestExpressPage.php
Generated on Thu Jan 16 2025 19:02:10 for ILIAS by
1.8.13 (using
Doxyfile
)