ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 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 61 of file class.ilTestQuestionSetConfig.php.

61 : int
62 {
63 $refs_ids = ilObject::_getAllReferences($pool_obj_id);
64 $refs_id = current($refs_ids);
65
66 return (int) $refs_id;
67 }
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 52 of file class.ilTestQuestionSetConfig.php.

52 : string
53 {
54 $ref_id = current(ilObject::_getAllReferences($pool_id));
55
56 $path = new ilPathGUI();
57 $path->enableTextOnly(true);
58 return $path->getPath(ROOT_FOLDER_ID, (int) $ref_id);
59 }
const ROOT_FOLDER_ID
Definition: constants.php:32
$ref_id
Definition: ltiauth.php:66
$path
Definition: ltiservices.php:30

References $path, $ref_id, ilObject\_getAllReferences(), and ROOT_FOLDER_ID.

+ Here is the call 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: