ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 41 of file class.ilTestExpressPage.php.

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  }

◆ getReturnToPageLink()

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

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

References $DIC, and $ilCtrl.

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

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  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
+ Here is the caller graph for this function:

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