ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilTestRandomQuestionSetBuilderWithAmountPerPool Class Reference
+ Inheritance diagram for ilTestRandomQuestionSetBuilderWithAmountPerPool:
+ Collaboration diagram for ilTestRandomQuestionSetBuilderWithAmountPerPool:

Public Member Functions

 checkBuildable ()
 
- Public Member Functions inherited from ilTestRandomQuestionSetBuilder
 checkBuildable ()
 
 performBuild (ilTestSession $testSession)
 
 getSrcPoolDefRelatedQuestCollection (ilTestRandomQuestionSetSourcePoolDefinition $definition)
 
 getSrcPoolDefListRelatedQuestUniqueCollection (ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList)
 
 getCheckMessages ()
 
- Public Member Functions inherited from ilTestRandomSourcePoolDefinitionQuestionCollectionProvider
 getSrcPoolDefListRelatedQuestCombinationCollection (ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestRandomQuestionSetBuilder
static getInstance (ilDBInterface $db, ilObjTest $testOBJ, ilTestRandomQuestionSetConfig $questionSetConfig, ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList, ilTestRandomQuestionSetStagingPoolQuestionList $stagingPoolQuestionList)
 
- Protected Member Functions inherited from ilTestRandomQuestionSetBuilder
 __construct (ilDBInterface $db, ilObjTest $testOBJ, ilTestRandomQuestionSetConfig $questionSetConfig, ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList, ilTestRandomQuestionSetStagingPoolQuestionList $stagingPoolQuestionList)
 
 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
 
 $checkMessages = array()
 

Detailed Description

Member Function Documentation

◆ checkBuildable()

ilTestRandomQuestionSetBuilderWithAmountPerPool::checkBuildable ( )
Returns
bool

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

References $ilDB, $ilLog, $translator, array, ilTestRandomQuestionSetBuilder\fetchQuestionsFromStageRandomly(), ilTestRandomQuestionSetBuilder\getSrcPoolDefListRelatedQuestUniqueCollection(), ilTestRandomQuestionSetBuilder\getSrcPoolDefRelatedQuestCollection(), ilTestRandomQuestionSetBuilder\handleQuestionOrdering(), ilTestRandomQuestionSetBuilder\performBuild(), and ilTestRandomQuestionSetBuilder\storeQuestionSet().

55  {
56  // hey: fixRandomTestBuildable - improved the buildable check improvement
57  return $this->checkBuildableNewer();
58  // hey.
59 
60  $questionStage = $this->getSrcPoolDefListRelatedQuestUniqueCollection($this->sourcePoolDefinitionList);
61 
62  if ($questionStage->isSmallerThan($this->sourcePoolDefinitionList->getQuestionAmount())) {
63  return false;
64  }
65 
66  return true;
67  }
getSrcPoolDefListRelatedQuestUniqueCollection(ilTestRandomQuestionSetSourcePoolDefinitionList $sourcePoolDefinitionList)
+ Here is the call graph for this function:

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