ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilTestExpressPage Class Reference
+ Collaboration diagram for ilTestExpressPage:

Static Public Member Functions

static getReturnToPageLink ($q_id=null)
 

Static Private Member Functions

static fetchTargetRefIdParameter ()
 

Detailed Description

Definition at line 5 of file class.ilTestExpressPage.php.

Member Function Documentation

◆ fetchTargetRefIdParameter()

static ilTestExpressPage::fetchTargetRefIdParameter ( )
staticprivate
Parameters
$params
Returns
mixed

Definition at line 40 of file class.ilTestExpressPage.php.

41  {
42  if ($_REQUEST['calling_test']) {
43  return $_REQUEST['calling_test'];
44  } elseif ($_REQUEST['test_ref_id']) {
45  return $_REQUEST['test_ref_id'];
46  }
47 
48  return $_REQUEST['ref_id'];
49  }

◆ getReturnToPageLink()

static ilTestExpressPage::getReturnToPageLink (   $q_id = null)
static

Definition at line 7 of file class.ilTestExpressPage.php.

References $ilCtrl, and array.

Referenced by assQuestionGUI\addBackTab(), assQuestionGUI\cancelSync(), assQuestionGUI\save(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), assFileUploadGUI\setQuestionTabs(), and assQuestionGUI\sync().

8  {
9  global $ilCtrl;
10 
11  $q_id = $q_id ? $q_id : $_REQUEST['q_id'];
12  $refId = self::fetchTargetRefIdParameter();
13 
14  if ($_REQUEST['q_id']) {
15  $q_id = $q_id ? $q_id : (isset($_REQUEST['prev_qid']) ? $_REQUEST['prev_qid'] : $_REQUEST['q_id']);
16 
17  $ilCtrl->setParameterByClass('iltestexpresspageobjectgui', 'test_express_mode', 1);
18  $ilCtrl->setParameterByClass('iltestexpresspageobjectgui', 'ref_id', $refId);
19  $ilCtrl->setParameterByClass('iltestexpresspageobjectgui', 'q_id', $q_id);
20 
21  return $ilCtrl->getLinkTargetByClass(
22  array('ilobjtestgui', 'iltestexpresspageobjectgui'),
23  'edit',
24  '',
25  false,
26  false
27  );
28  }
29 
30  $ilCtrl->setParameterByClass('ilobjtestgui', 'test_express_mode', 1);
31  $ilCtrl->setParameterByClass('ilobjtestgui', 'ref_id', $refId);
32 
33  return $ilCtrl->getLinkTargetByClass('ilobjtestgui', 'showQuestionsPerPage', '', false, false);
34  }
global $ilCtrl
Definition: ilias.php:18
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: