4 require_once
'Modules/Test/classes/class.ilTestSequence.php';
5 require_once
'Modules/Test/interfaces/interface.ilTestRandomQuestionSequence.php';
22 $this->questions =
array();
25 "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",
26 array(
'integer',
'integer'),
27 array($this->active_id, $this->pass)
35 "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",
37 array($this->active_id)
46 $this->responsibleSourcePoolDefinitionByQuestion[
$data[
'question_fi']] = $data[
'src_pool_def_fi'];
64 "SELECT test_random_question_id FROM tst_test_rnd_qst WHERE active_fi = %s AND pass = %s",
65 array(
'integer',
'integer'),
68 return (
$result->numRows() > 0) ?
true :
false;
73 if (isset($this->responsibleSourcePoolDefinitionByQuestion[$questionId])) {
74 return $this->responsibleSourcePoolDefinitionByQuestion[$questionId];
loadQuestions(ilTestQuestionSetConfig $testQuestionSetConfig=null, $taxonomyFilterSelection=array())
getResponsibleSourcePoolDefinitionId($questionId)
$responsibleSourcePoolDefinitionByQuestion
Create styles array
The data for the language used.
hasRandomQuestionsForPass($active_id, $pass)
!!! LEGACY CODE !!!