ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestExpressPage Class Reference
+ Collaboration diagram for ilTestExpressPage:

Static Public Member Functions

static getNodeId ($cls)
static getReturnToPageLink ($q_id=null)

Detailed Description

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

Member Function Documentation

static ilTestExpressPage::getNodeId (   $cls)
static

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

References $ilDB, $query, $res, and $row.

Referenced by getReturnToPageLink(), and ilTestExpressPageObjectGUI\redirectToQuestionEditPage().

{
global $ilDB;
$query = 'SELECT cid FROM ctrl_classfile WHERE class = %s';
$types = array('text');
$values = array($cls);
$res = $ilDB->queryF($query, $types, $values);
if ($res && $row = $ilDB->fetchAssoc($res)) {
return $row['cid'];
} else {
throw new Exception('unknown ctrl class "' . $cls . '"');
}
}

+ Here is the caller graph for this function:

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

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

References $_REQUEST, and getNodeId().

Referenced by assQuestionGUI\save(), assQuestionGUI\saveReturn(), assNumericGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), and assMatchingQuestionGUI\setQuestionTabs().

{
$params = array();
$q_id = $q_id ? $q_id : $_REQUEST['q_id'];
$params['baseClass'] = 'ilObjTestGUI';
if ($_REQUEST['calling_test']) {
$params['ref_id'] = $_REQUEST['calling_test'];
}
else if ($_REQUEST['test_ref_id']) {
$params['ref_id'] = $_REQUEST['test_ref_id'];
}
else {
$params['ref_id'] = $_REQUEST['ref_id'];
}
$params['test_express_mode'] = 1;
#$nodeParts = explode(':', $_REQUEST['cmdNode']);
if ($_REQUEST['q_id']) {
$params['cmd'] = 'edit';
$params['q_id'] = $q_id ? $q_id : (isset($_REQUEST['prev_qid']) ? $_REQUEST['prev_qid'] : $_REQUEST['q_id']);
$params['cmdClass'] = 'iltestexpresspageobjectgui';
$params['cmdNode'] = ilTestExpressPage::getNodeId('ilobjtestgui') . ':' . ilTestExpressPage::getNodeId('iltestexpresspageobjectgui');
#ref_id=44&cmd=post&cmdClass=iltestexpresspageobjectgui&cmdNode=6o:61&baseClass=ilObjTestGUI
} else {
$params['cmd'] = 'showQuestionsPerPage';
$params['cmdNode'] = ilTestExpressPage::getNodeId('ilobjtestgui');
}
return 'ilias.php?' . http_build_query($params);
}

+ 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: