4 require_once
'Modules/Test/classes/class.ilTestRandomQuestionSetBuilder.php';
16 $questionStage = $this->getQuestionStageForSourcePoolDefinitionList($this->sourcePoolDefinitionList);
18 if( $questionStage->isSmallerThan($this->sourcePoolDefinitionList->getQuestionAmount()) )
30 foreach($this->sourcePoolDefinitionList as $definition)
34 $requiredQuestionAmount = $definition->getQuestionAmount();
38 $actualQuestionStage = $potentialQuestionStage->getRelativeComplementCollection($questionSet);
40 if( $actualQuestionStage->isGreaterThan($requiredQuestionAmount) )
46 $questions = $actualQuestionStage;
49 $questionSet->mergeQuestionCollection($questions);
52 $requiredQuestionAmount = $this->sourcePoolDefinitionList->getQuestionAmount();
54 if( $questionSet->isSmallerThan($requiredQuestionAmount) )
56 $missingQuestionCount = $questionSet->getMissingCount($requiredQuestionAmount);
57 $questionStage = $this->getQuestionStageForSourcePoolDefinitionList($this->sourcePoolDefinitionList);
60 $questionSet->mergeQuestionCollection($questions);