ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 
)

Member Function Documentation

◆ cloneQuestionSetRelatedData()

ilTestQuestionSetConfig::cloneQuestionSetRelatedData ( ilObjTest  $clone_test_obj)
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ cloneToDbForTestId()

ilTestQuestionSetConfig::cloneToDbForTestId ( int  $testId)
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ deleteFromDb()

ilTestQuestionSetConfig::deleteFromDb ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ doesQuestionSetRelatedDataExist()

ilTestQuestionSetConfig::doesQuestionSetRelatedDataExist ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getFirstQuestionPoolRefIdByObjId()

ilTestQuestionSetConfig::getFirstQuestionPoolRefIdByObjId ( int  $pool_obj_id)

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

References ilObject\_getAllReferences(), and isResultTaxonomyFilterSupported().

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
+ Here is the call graph for this function:

◆ getQuestionPoolPathString()

ilTestQuestionSetConfig::getQuestionPoolPathString ( int  $pool_id)

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

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

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
static _getAllReferences(int $id)
get all reference ids for object ID
$path
Definition: ltiservices.php:29
$ref_id
Definition: ltiauth.php:65
+ Here is the call graph for this function:

◆ isQuestionSetConfigured()

ilTestQuestionSetConfig::isQuestionSetConfigured ( )
abstract

Referenced by __construct(), and ilObjTest\isComplete().

+ Here is the caller graph for this function:

◆ isResultTaxonomyFilterSupported()

ilTestQuestionSetConfig::isResultTaxonomyFilterSupported ( )
abstract

Referenced by getFirstQuestionPoolRefIdByObjId().

+ Here is the caller graph for this function:

◆ loadFromDb()

ilTestQuestionSetConfig::loadFromDb ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ removeQuestionSetRelatedData()

ilTestQuestionSetConfig::removeQuestionSetRelatedData ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ saveToDb()

ilTestQuestionSetConfig::saveToDb ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

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