ILIAS  Release_4_4_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 getNodeId ($cls)
static getReturnToPageLink ($q_id=null)

Detailed Description

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

Member Function Documentation

static ilTestExpressPage::getNodeId (   $cls)
static

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

References $query, $res, and $row.

Referenced by getReturnToPageLink().

{
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 20 of file class.ilTestExpressPage.php.

References $_REQUEST, and getNodeId().

Referenced by assQuestionGUI\save(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), and assOrderingQuestionGUI\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: