ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getEmptySourcePoolDefinition ( )

◆ getSourcePoolDefinitionByDefinitionId()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getSourcePoolDefinitionByDefinitionId (   $definitionId)
Returns
ilTestRandomQuestionSetSourcePoolDefinition

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

References buildDefinitionInstance().

53  {
54  $sourcePoolDefinition = $this->buildDefinitionInstance();
55 
56  $sourcePoolDefinition->loadFromDb($definitionId);
57 
58  return $sourcePoolDefinition;
59  }
+ Here is the call graph for this function:

◆ getSourcePoolDefinitionByOriginalPoolData()

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getSourcePoolDefinitionByOriginalPoolData (   $originalPoolData)
Returns
ilTestRandomQuestionSetSourcePoolDefinition

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

References buildDefinitionInstance().

38  {
39  $sourcePoolDefinition = $this->buildDefinitionInstance();
40 
41  $sourcePoolDefinition->setPoolId($originalPoolData['qpl_id']);
42  $sourcePoolDefinition->setPoolTitle($originalPoolData['qpl_title']);
43  $sourcePoolDefinition->setPoolPath($originalPoolData['qpl_path']);
44  $sourcePoolDefinition->setPoolQuestionCount($originalPoolData['count']);
45 
46  return $sourcePoolDefinition;
47  }
+ 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: