4 require_once
'Modules/Test/classes/class.ilTestVirtualSequence.php';
5 require_once
'Modules/Test/interfaces/interface.ilTestRandomQuestionSequence.php';
21 $this->questionsSourcePoolDefinitionMap = array();
26 return $this->questionsSourcePoolDefinitionMap[$questionId];
31 $this->questionsPassMap = array();
33 foreach ($passes as
$pass) {
34 $handledSourcePoolDefinitions = array_flip($this->questionsSourcePoolDefinitionMap);
38 foreach ($testSequence->getOrderedSequenceQuestions() as $questionId) {
39 $definitionId = $testSequence->getResponsibleSourcePoolDefinitionId($questionId);
41 if (isset($handledSourcePoolDefinitions[$definitionId])) {
46 $this->questionsPassMap[$questionId] =
$pass;
48 $this->questionsSourcePoolDefinitionMap[$questionId] = $definitionId;
$questionsSourcePoolDefinitionMap
getTestSequence($activeId, $pass)
getResponsibleSourcePoolDefinitionId($questionId)
__construct(Container $dic, ilPlugin $plugin)
wasAnsweredInThisPass(ilTestSequence $testSequence, $questionId)
__construct(ilDBInterface $db, ilObjTest $testOBJ, ilTestSequenceFactory $testSequenceFactory)
fetchQuestionsFromPasses($activeId, $passes)