◆ __construct()
◆ fetchQuestionsFromPasses()
ilTestVirtualSequenceRandomQuestionSet::fetchQuestionsFromPasses |
( |
int |
$active_id, |
|
|
array |
$passes |
|
) |
| |
|
protected |
Definition at line 43 of file class.ilTestVirtualSequenceRandomQuestionSet.php.
References ilTestVirtualSequence\getTestSequence(), and ilTestVirtualSequence\wasAnsweredInThisPass().
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)
wasAnsweredInThisPass(ilTestSequence $test_sequence, int $question_id)
◆ getResponsibleSourcePoolDefinitionId()
ilTestVirtualSequenceRandomQuestionSet::getResponsibleSourcePoolDefinitionId |
( |
int |
$question_id | ) |
|
◆ $questions_source_pool_definition_map
array ilTestVirtualSequenceRandomQuestionSet::$questions_source_pool_definition_map |
|
private |
The documentation for this class was generated from the following file: