4 require_once
'Modules/Test/interfaces/interface.ilTestQuestionSequence.php';
45 $this->activeId = null;
47 $this->questionsPassMap =
array();
62 return array_keys($this->questionsPassMap);
72 return array_unique(array_values($this->questionsPassMap));
83 require_once
'Modules/Test/classes/class.ilTestPassesSelector.php';
87 $passes = $passesSelector->getExistingPasses();
89 rsort($passes, SORT_NUMERIC);
96 $testSequence = $this->testSequenceFactory->getSequenceByActiveIdAndPass(
$activeId,
$pass);
98 $testSequence->loadFromDb();
99 $testSequence->loadQuestions();
101 $testSequence->setConsiderHiddenQuestionsEnabled(
true);
102 $testSequence->setConsiderOptionalQuestionsEnabled(
true);
103 return $testSequence;
125 $this->questionsPassMap =
array();
127 foreach ($passes as
$pass) {
130 foreach ($testSequence->getOrderedSequenceQuestions() as $questionId) {
131 if (isset($this->questionsPassMap[$questionId])) {
136 $this->questionsPassMap[$questionId] =
$pass;
getExistingPassesDescendent($activeId)
isQuestionOptional($questionId)
fetchQuestionsFromPasses($activeId, $passes)
getTestSequence($activeId, $pass)
Create styles array
The data for the language used.
isHiddenQuestion($question_id)
wasAnsweredInThisPass(ilTestSequence $testSequence, $questionId)
isAnsweringOptionalQuestionsConfirmed()
__construct(ilDBInterface $db, ilObjTest $testOBJ, ilTestSequenceFactory $testSequenceFactory)