ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestRandomQuestionSetSourcePoolDefinitionFactory Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetSourcePoolDefinitionFactory:

Public Member Functions

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

Private Member Functions

 buildDefinitionInstance ()

Private Attributes

 $db = null
 $testOBJ = null

Detailed Description

Constructor & Destructor Documentation

ilTestRandomQuestionSetSourcePoolDefinitionFactory::__construct ( ilDB  $db,
ilObjTest  $testOBJ 
)
Parameters
ilDB$db
ilObjTest$testOBJ

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

References $db, and $testOBJ.

{
$this->db = $db;
$this->testOBJ = $testOBJ;
}

Member Function Documentation

ilTestRandomQuestionSetSourcePoolDefinitionFactory::buildDefinitionInstance ( )
private
ilTestRandomQuestionSetSourcePoolDefinitionFactory::getEmptySourcePoolDefinition ( )
Returns
ilTestRandomQuestionSetSourcePoolDefinition

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

References buildDefinitionInstance().

{
return $this->buildDefinitionInstance();
}

+ Here is the call graph for this function:

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getSourcePoolDefinitionByDefinitionId (   $definitionId)
Returns
ilTestRandomQuestionSetSourcePoolDefinition

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

References buildDefinitionInstance().

{
$sourcePoolDefinition = $this->buildDefinitionInstance();
$sourcePoolDefinition->loadFromDb($definitionId);
return $sourcePoolDefinition;
}

+ Here is the call graph for this function:

ilTestRandomQuestionSetSourcePoolDefinitionFactory::getSourcePoolDefinitionByOriginalPoolData (   $originalPoolData)
Returns
ilTestRandomQuestionSetSourcePoolDefinition

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

References buildDefinitionInstance().

{
$sourcePoolDefinition = $this->buildDefinitionInstance();
$sourcePoolDefinition->setPoolId( $originalPoolData['qpl_id'] );
$sourcePoolDefinition->setPoolTitle( $originalPoolData['qpl_title'] );
$sourcePoolDefinition->setPoolPath( $originalPoolData['qpl_path'] );
$sourcePoolDefinition->setPoolQuestionCount( $originalPoolData['count'] );
return $sourcePoolDefinition;
}

+ Here is the call graph for this function:

Field Documentation

ilTestRandomQuestionSetSourcePoolDefinitionFactory::$db = null
private
ilTestRandomQuestionSetSourcePoolDefinitionFactory::$testOBJ = null
private

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