ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

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

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

References $_REQUEST.

Referenced by getReturnToPageLink().

{
if($_REQUEST['calling_test'])
{
return $_REQUEST['calling_test'];
}
elseif($_REQUEST['test_ref_id'])
{
return $_REQUEST['test_ref_id'];
}
return $_REQUEST['ref_id'];
}

+ Here is the caller graph for this function:

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

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

References $_REQUEST, $ilCtrl, and fetchTargetRefIdParameter().

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

{
global $ilCtrl;
$q_id = $q_id ? $q_id : $_REQUEST['q_id'];
if($_REQUEST['q_id'])
{
$q_id = $q_id ? $q_id : (isset($_REQUEST['prev_qid']) ? $_REQUEST['prev_qid'] : $_REQUEST['q_id']);
$ilCtrl->setParameterByClass('iltestexpresspageobjectgui', 'test_express_mode', 1);
$ilCtrl->setParameterByClass('iltestexpresspageobjectgui', 'ref_id', $refId);
$ilCtrl->setParameterByClass('iltestexpresspageobjectgui', 'q_id', $q_id);
return $ilCtrl->getLinkTargetByClass(
array('ilobjtestgui', 'iltestexpresspageobjectgui'), 'edit', '', false, false
);
}
$ilCtrl->setParameterByClass('ilobjtestgui', 'test_express_mode', 1);
$ilCtrl->setParameterByClass('ilobjtestgui', 'ref_id', $refId);
return $ilCtrl->getLinkTargetByClass('ilobjtestgui', 'showQuestionsPerPage', '', false, false);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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