ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 37 of file class.ilTestExpressPage.php.

38  {
39  if($_REQUEST['calling_test'])
40  {
41  return $_REQUEST['calling_test'];
42  }
43  elseif($_REQUEST['test_ref_id'])
44  {
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  {
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'), 'edit', '', false, false
24  );
25  }
26 
27  $ilCtrl->setParameterByClass('ilobjtestgui', 'test_express_mode', 1);
28  $ilCtrl->setParameterByClass('ilobjtestgui', 'ref_id', $refId);
29 
30  return $ilCtrl->getLinkTargetByClass('ilobjtestgui', 'showQuestionsPerPage', '', false, false);
31  }
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: