ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestQuestionSetConfig Class Reference
+ Inheritance diagram for ilTestQuestionSetConfig:
+ Collaboration diagram for ilTestQuestionSetConfig:

Public Member Functions

 __construct (protected ilTree $tree, protected ilDBInterface $db, protected ilLanguage $lng, protected ilLogger $log, protected ilComponentRepository $component_repository, protected ilObjTest $test_obj, protected \ILIAS\TestQuestionPool\QuestionInfoService $questioninfo)
 
 loadFromDb ()
 
 saveToDb ()
 
 cloneToDbForTestId (int $testId)
 
 deleteFromDb ()
 
 areDepenciesInVulnerableState ()
 
 getDepenciesInVulnerableStateMessage (ilLanguage $lng)
 
 areDepenciesBroken ()
 
 getDepenciesBrokenMessage (ilLanguage $lng)
 
 isValidRequestOnBrokenQuestionSetDepencies (string $next_class, string $cmd)
 
 getHiddenTabsOnBrokenDepencies ()
 
 isQuestionSetConfigured ()
 
 doesQuestionSetRelatedDataExist ()
 
 removeQuestionSetRelatedData ()
 
 cloneQuestionSetRelatedData (ilObjTest $clone_test_obj)
 
 getQuestionPoolPathString (int $pool_id)
 
 getFirstQuestionPoolRefIdByObjId (int $pool_obj_id)
 
 isResultTaxonomyFilterSupported ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionSetConfig::__construct ( protected ilTree  $tree,
protected ilDBInterface  $db,
protected ilLanguage  $lng,
protected ilLogger  $log,
protected ilComponentRepository  $component_repository,
protected ilObjTest  $test_obj,
protected \ILIAS\TestQuestionPool\QuestionInfoService  $questioninfo 
)

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

References cloneToDbForTestId(), deleteFromDb(), loadFromDb(), and saveToDb().

36  {
37  }
+ Here is the call graph for this function:

Member Function Documentation

◆ areDepenciesBroken()

ilTestQuestionSetConfig::areDepenciesBroken ( )

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

54  : bool
55  {
56  return false;
57  }

◆ areDepenciesInVulnerableState()

ilTestQuestionSetConfig::areDepenciesInVulnerableState ( )

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

44  : bool
45  {
46  return false;
47  }

◆ cloneQuestionSetRelatedData()

ilTestQuestionSetConfig::cloneQuestionSetRelatedData ( ilObjTest  $clone_test_obj)
abstract

Referenced by getHiddenTabsOnBrokenDepencies().

+ 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 getHiddenTabsOnBrokenDepencies().

+ Here is the caller graph for this function:

◆ getDepenciesBrokenMessage()

ilTestQuestionSetConfig::getDepenciesBrokenMessage ( ilLanguage  $lng)

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

59  : string
60  {
61  return '';
62  }

◆ getDepenciesInVulnerableStateMessage()

ilTestQuestionSetConfig::getDepenciesInVulnerableStateMessage ( ilLanguage  $lng)

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

49  : string
50  {
51  return '';
52  }

◆ getFirstQuestionPoolRefIdByObjId()

ilTestQuestionSetConfig::getFirstQuestionPoolRefIdByObjId ( int  $pool_obj_id)

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

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

88  : int
89  {
90  $refs_ids = ilObject::_getAllReferences($pool_obj_id);
91  $refs_id = current($refs_ids);
92 
93  return (int) $refs_id;
94  }
static _getAllReferences(int $id)
get all reference ids for object ID
+ Here is the call graph for this function:

◆ getHiddenTabsOnBrokenDepencies()

ilTestQuestionSetConfig::getHiddenTabsOnBrokenDepencies ( )

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

References cloneQuestionSetRelatedData(), doesQuestionSetRelatedDataExist(), isQuestionSetConfigured(), and removeQuestionSetRelatedData().

69  : array
70  {
71  return [];
72  }
+ Here is the call graph for this function:

◆ getQuestionPoolPathString()

ilTestQuestionSetConfig::getQuestionPoolPathString ( int  $pool_id)

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

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

79  : string
80  {
81  $ref_id = current(ilObject::_getAllReferences($pool_id));
82 
83  $path = new ilPathGUI();
84  $path->enableTextOnly(true);
85  return $path->getPath(ROOT_FOLDER_ID, (int) $ref_id);
86  }
Creates a path for a start and endnode.
const ROOT_FOLDER_ID
Definition: constants.php:32
static _getAllReferences(int $id)
get all reference ids for object ID
$path
Definition: ltiservices.php:32
$ref_id
Definition: ltiauth.php:67
+ Here is the call graph for this function:

◆ isQuestionSetConfigured()

ilTestQuestionSetConfig::isQuestionSetConfigured ( )
abstract

Referenced by getHiddenTabsOnBrokenDepencies(), 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:

◆ isValidRequestOnBrokenQuestionSetDepencies()

ilTestQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies ( string  $next_class,
string  $cmd 
)

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

64  : bool
65  {
66  return true;
67  }

◆ loadFromDb()

ilTestQuestionSetConfig::loadFromDb ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ removeQuestionSetRelatedData()

ilTestQuestionSetConfig::removeQuestionSetRelatedData ( )
abstract

Referenced by getHiddenTabsOnBrokenDepencies().

+ 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: