4 require_once
'Modules/Test/classes/class.ilTestSequence.php';
20 $this->questions = array();
22 $result = $ilDB->queryF(
"SELECT tst_test_rnd_qst.* FROM tst_test_rnd_qst, qpl_questions WHERE tst_test_rnd_qst.active_fi = %s AND qpl_questions.question_id = tst_test_rnd_qst.question_fi AND tst_test_rnd_qst.pass = %s ORDER BY sequence",
23 array(
'integer',
'integer'),
24 array($this->active_id, $this->pass)
32 $result = $ilDB->queryF(
"SELECT tst_test_rnd_qst.* FROM tst_test_rnd_qst, qpl_questions WHERE tst_test_rnd_qst.active_fi = %s AND qpl_questions.question_id = tst_test_rnd_qst.question_fi AND tst_test_rnd_qst.pass = 0 ORDER BY sequence",
34 array($this->active_id)
40 while ($data = $ilDB->fetchAssoc(
$result))
42 $this->questions[$index++] = $data[
"question_fi"];
44 $this->responsibleSourcePoolDefinitionByQuestion[$data[
'question_fi']] = $data[
'src_pool_def_fi'];
61 $result = $ilDB->queryF(
"SELECT test_random_question_id FROM tst_test_rnd_qst WHERE active_fi = %s AND pass = %s",
62 array(
'integer',
'integer'),
65 return (
$result->numRows() > 0) ?
true :
false;
70 if( isset($this->responsibleSourcePoolDefinitionByQuestion[$questionId]) )
72 return $this->responsibleSourcePoolDefinitionByQuestion[$questionId];