19 declare(strict_types=1);
35 $this->questions_source_pool_definition_map = [];
40 return $this->questions_source_pool_definition_map[$question_id];
45 $this->questions_pass_map = [];
47 foreach ($passes as $pass) {
48 $handled_source_pool_definitions = array_flip($this->questions_source_pool_definition_map);
52 foreach ($test_sequence->getOrderedSequenceQuestions() as $question_id) {
53 $definition_id = $test_sequence->getResponsibleSourcePoolDefinitionId($question_id);
55 if (isset($handled_source_pool_definitions[$definition_id])) {
60 $this->questions_pass_map[$question_id] = $pass;
62 $this->questions_source_pool_definition_map[$question_id] = $definition_id;
getTestSequence(int $active_id, int $pass)
fetchQuestionsFromPasses(int $active_id, array $passes)
array $questions_source_pool_definition_map
getResponsibleSourcePoolDefinitionId(int $question_id)
wasAnsweredInThisPass(ilTestSequence $test_sequence, int $question_id)
__construct(Container $dic, ilPlugin $plugin)
__construct(ilDBInterface $db, ilObjTest $test_obj, ilTestSequenceFactory $test_sequence_facory)