ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestRandomQuestionSetSourcePoolDefinitionFactory Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetSourcePoolDefinitionFactory:

Public Member Functions

 __construct (ilDBInterface $db, ilObjTest $testOBJ)
 
 getSourcePoolDefinitionByOriginalPoolData ($originalPoolData)
 
 getSourcePoolDefinitionByDefinitionId ($definitionId)
 
 getEmptySourcePoolDefinition ()
 

Private Member Functions

 buildDefinitionInstance ()
 

Private Attributes

 $db = null
 
 $testOBJ = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::__construct ( ilDBInterface  $db,
ilObjTest  $testOBJ 
)

Member Function Documentation

◆ buildDefinitionInstance()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::buildDefinitionInstance ( )
private

◆ getEmptySourcePoolDefinition()

◆ getSourcePoolDefinitionByDefinitionId()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getSourcePoolDefinitionByDefinitionId (   $definitionId)
Returns
ilTestRandomQuestionSetSourcePoolDefinition

Definition at line 66 of file class.ilTestRandomQuestionSetSourcePoolDefinitionFactory.php.

References buildDefinitionInstance().

67  {
68  $sourcePoolDefinition = $this->buildDefinitionInstance();
69 
70  $sourcePoolDefinition->loadFromDb($definitionId);
71 
72  return $sourcePoolDefinition;
73  }
+ Here is the call graph for this function:

◆ getSourcePoolDefinitionByOriginalPoolData()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getSourcePoolDefinitionByOriginalPoolData (   $originalPoolData)
Returns
ilTestRandomQuestionSetSourcePoolDefinition

Definition at line 50 of file class.ilTestRandomQuestionSetSourcePoolDefinitionFactory.php.

References buildDefinitionInstance().

51  {
52  $sourcePoolDefinition = $this->buildDefinitionInstance();
53 
54  $sourcePoolDefinition->setPoolId($originalPoolData['qpl_id']);
55  $sourcePoolDefinition->setPoolRefId($originalPoolData['qpl_ref_id']);
56  $sourcePoolDefinition->setPoolTitle($originalPoolData['qpl_title']);
57  $sourcePoolDefinition->setPoolPath($originalPoolData['qpl_path']);
58  $sourcePoolDefinition->setPoolQuestionCount($originalPoolData['count']);
59 
60  return $sourcePoolDefinition;
61  }
+ Here is the call graph for this function:

Field Documentation

◆ $db

ilTestRandomQuestionSetSourcePoolDefinitionFactory::$db = null
private

◆ $testOBJ

ilTestRandomQuestionSetSourcePoolDefinitionFactory::$testOBJ = null
private

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