ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilTestQuestionSetConfig Class Reference
+ Inheritance diagram for ilTestQuestionSetConfig:
+ Collaboration diagram for ilTestQuestionSetConfig:

Public Member Functions

 __construct (protected readonly ilTree $tree, protected readonly ilDBInterface $db, protected readonly ilLanguage $lng, protected readonly TestLogger $logger, protected readonly ilComponentRepository $component_repository, protected readonly ilObjTest $test_obj, protected readonly GeneralQuestionPropertiesRepository $questionrepository)
 
 loadFromDb ()
 
 saveToDb ()
 
 cloneToDbForTestId (int $testId)
 
 deleteFromDb ()
 
 isQuestionSetConfigured ()
 
 doesQuestionSetRelatedDataExist ()
 
 removeQuestionSetRelatedData ()
 
 cloneQuestionSetRelatedData (ilObjTest $clone_test_obj)
 
 getTestObject ()
 
 getQuestionPoolPathString (int $pool_id)
 
 getFirstQuestionPoolRefIdByObjId (int $pool_obj_id)
 
 isResultTaxonomyFilterSupported ()
 

Detailed Description

Definition at line 29 of file class.ilTestQuestionSetConfig.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionSetConfig::__construct ( protected readonly ilTree  $tree,
protected readonly ilDBInterface  $db,
protected readonly ilLanguage  $lng,
protected readonly TestLogger  $logger,
protected readonly ilComponentRepository  $component_repository,
protected readonly ilObjTest  $test_obj,
protected readonly GeneralQuestionPropertiesRepository  $questionrepository 
)

Definition at line 31 of file class.ilTestQuestionSetConfig.php.

39 {
40 }

Member Function Documentation

◆ cloneQuestionSetRelatedData()

ilTestQuestionSetConfig::cloneQuestionSetRelatedData ( ilObjTest  $clone_test_obj)
abstract

◆ cloneToDbForTestId()

ilTestQuestionSetConfig::cloneToDbForTestId ( int  $testId)
abstract

◆ deleteFromDb()

ilTestQuestionSetConfig::deleteFromDb ( )
abstract

◆ doesQuestionSetRelatedDataExist()

ilTestQuestionSetConfig::doesQuestionSetRelatedDataExist ( )
abstract

◆ getFirstQuestionPoolRefIdByObjId()

ilTestQuestionSetConfig::getFirstQuestionPoolRefIdByObjId ( int  $pool_obj_id)

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

66 : int
67 {
68 $refs_ids = ilObject::_getAllReferences($pool_obj_id);
69 $refs_id = current($refs_ids);
70
71 return (int) $refs_id;
72 }
static _getAllReferences(int $id)
get all reference ids for object ID

References ilObject\_getAllReferences().

+ Here is the call graph for this function:

◆ getQuestionPoolPathString()

ilTestQuestionSetConfig::getQuestionPoolPathString ( int  $pool_id)

Definition at line 57 of file class.ilTestQuestionSetConfig.php.

57 : string
58 {
59 $ref_id = current(ilObject::_getAllReferences($pool_id));
60
61 $path = new ilPathGUI();
62 $path->enableTextOnly(true);
63 return $path->getPath(ROOT_FOLDER_ID, (int) $ref_id);
64 }
const ROOT_FOLDER_ID
Definition: constants.php:32

References ilObject\_getAllReferences(), and ROOT_FOLDER_ID.

+ Here is the call graph for this function:

◆ getTestObject()

ilTestQuestionSetConfig::getTestObject ( )

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

52 : ilObjTest
53 {
54 return $this->test_obj;
55 }

Referenced by ILIAS\Test\ExportImport\Normalize\Normalizer\QuestionSetConfigNormalizer\normalizeTestObj().

+ Here is the caller graph for this function:

◆ isQuestionSetConfigured()

ilTestQuestionSetConfig::isQuestionSetConfigured ( )
abstract

Reimplemented in ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

Referenced by ilObjTest\isComplete().

+ Here is the caller graph for this function:

◆ isResultTaxonomyFilterSupported()

ilTestQuestionSetConfig::isResultTaxonomyFilterSupported ( )
abstract

◆ loadFromDb()

ilTestQuestionSetConfig::loadFromDb ( )
abstract

◆ removeQuestionSetRelatedData()

ilTestQuestionSetConfig::removeQuestionSetRelatedData ( )
abstract

◆ saveToDb()

ilTestQuestionSetConfig::saveToDb ( )
abstract

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