ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestRandomQuestionSetBuilderWithAmountPerPool Class Reference
+ Inheritance diagram for ilTestRandomQuestionSetBuilderWithAmountPerPool:
+ Collaboration diagram for ilTestRandomQuestionSetBuilderWithAmountPerPool:

Public Member Functions

 checkBuildable ()
- Public Member Functions inherited from ilTestRandomQuestionSetBuilder
 performBuild (ilTestSession $testSession)

Additional Inherited Members

- Static Public Member Functions inherited from ilTestRandomQuestionSetBuilder
static getInstance (ilDB $db, ilObjTest $testOBJ, ilTestRandomQuestionSetConfig $questionSetConfig, ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList, ilTestRandomQuestionSetStagingPoolQuestionList $stagingPoolQuestionList)
- Protected Member Functions inherited from ilTestRandomQuestionSetBuilder
 __construct (ilDB $db, ilObjTest $testOBJ, ilTestRandomQuestionSetConfig $questionSetConfig, ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList, ilTestRandomQuestionSetStagingPoolQuestionList $stagingPoolQuestionList)
 getQuestionStageForSourcePoolDefinition (ilTestRandomQuestionSetSourcePoolDefinition $definition)
 storeQuestionSet (ilTestSession $testSession, $questionSet)
 fetchQuestionsFromStageRandomly (ilTestRandomQuestionSetQuestionCollection $questionStage, $requiredQuestionAmount)
 handleQuestionOrdering (ilTestRandomQuestionSetQuestionCollection $questionSet)
- Protected Attributes inherited from ilTestRandomQuestionSetBuilder
 $db = null
 $testOBJ = null
 $questionSetConfig = null
 $sourcePoolDefinitionList = null
 $stagingPoolQuestionList = null

Detailed Description

Member Function Documentation

ilTestRandomQuestionSetBuilderWithAmountPerPool::checkBuildable ( )

Reimplemented from ilTestRandomQuestionSetBuilder.

Definition at line 14 of file class.ilTestRandomQuestionSetBuilderWithAmountPerPool.php.

{
$questionStage = $this->getQuestionStageForSourcePoolDefinitionList($this->sourcePoolDefinitionList);
if( $questionStage->isSmallerThan($this->sourcePoolDefinitionList->getQuestionAmount()) )
{
return false;
}
return true;
}

The documentation for this class was generated from the following file: