4require_once 
'Modules/Test/classes/class.ilTestSequence.php';
 
    5require_once 
'Modules/Test/interfaces/interface.ilTestRandomQuestionSequence.php';
 
   23        $this->questions = array();
 
   26            "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",
 
   27            array(
'integer',
'integer'),
 
   28            array($this->active_id, $this->pass)
 
   36                "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",
 
   38                array($this->active_id)
 
   47            $this->responsibleSourcePoolDefinitionByQuestion[
$data[
'question_fi']] = 
$data[
'src_pool_def_fi'];
 
   66            "SELECT test_random_question_id FROM tst_test_rnd_qst WHERE active_fi = %s AND pass = %s",
 
   67            array(
'integer',
'integer'),
 
   70        return (
$result->numRows() > 0) ? true : 
false;
 
   75        if (isset($this->responsibleSourcePoolDefinitionByQuestion[$questionId])) {
 
   76            return $this->responsibleSourcePoolDefinitionByQuestion[$questionId];
 
An exception for terminatinating execution or to throw for unit testing.
hasRandomQuestionsForPass($active_id, $pass)
!!! LEGACY CODE !!!
$responsibleSourcePoolDefinitionByQuestion
loadQuestions(ilTestQuestionSetConfig $testQuestionSetConfig=null, $taxonomyFilterSelection=array())
Loads the question mapping.
getResponsibleSourcePoolDefinitionId($questionId)