ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestQuestionSetConfig Class Reference
+ Inheritance diagram for ilTestQuestionSetConfig:
+ Collaboration diagram for ilTestQuestionSetConfig:

Public Member Functions

 __construct (ilTree $tree, ilDBInterface $db, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ)
 
 loadFromDb ()
 loads the question set config for current test from the database More...
 
 saveToDb ()
 saves the question set config for current test to the database More...
 
 cloneToDbForTestId ($testId)
 saves the question set config for test with given id to the database More...
 
 deleteFromDb ()
 deletes the question set config for current test from the database More...
 
 areDepenciesInVulnerableState ()
 
 getDepenciesInVulnerableStateMessage (ilLanguage $lng)
 
 areDepenciesBroken ()
 
 getDepenciesBrokenMessage (ilLanguage $lng)
 
 isValidRequestOnBrokenQuestionSetDepencies ($nextClass, $cmd)
 
 getHiddenTabsOnBrokenDepencies ()
 
 isQuestionSetConfigured ()
 
 doesQuestionSetRelatedDataExist ()
 checks wether question set config related data exists or not More...
 
 removeQuestionSetRelatedData ()
 removes all question set config related data More...
 
 resetQuestionSetRelatedTestSettings ()
 resets all test settings that depends on a non changed question set config More...
 
 cloneQuestionSetRelatedData (ilObjTest $cloneTestOBJ)
 removes all question set config related data for cloned/copied test More...
 
 getQuestionPoolPathString ($poolId)
 
 getFirstQuestionPoolRefIdByObjId (int $pool_obj_id)
 
 isResultTaxonomyFilterSupported ()
 

Protected Attributes

 $tree = null
 
 $db = null
 
 $pluginAdmin = null
 
 $testOBJ = null
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionSetConfig::__construct ( ilTree  $tree,
ilDBInterface  $db,
ilPluginAdmin  $pluginAdmin,
ilObjTest  $testOBJ 
)
Parameters
ilTree$tree
ilDBInterface$db
ilPluginAdmin$pluginAdmin
ilObjTest$testOBJ

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

References $db, $pluginAdmin, $testOBJ, $tree, cloneToDbForTestId(), deleteFromDb(), loadFromDb(), and saveToDb().

+ Here is the call graph for this function:

Member Function Documentation

◆ areDepenciesBroken()

ilTestQuestionSetConfig::areDepenciesBroken ( )

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

89  {
90  return false;
91  }

◆ areDepenciesInVulnerableState()

ilTestQuestionSetConfig::areDepenciesInVulnerableState ( )

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

79  {
80  return false;
81  }

◆ cloneQuestionSetRelatedData()

ilTestQuestionSetConfig::cloneQuestionSetRelatedData ( ilObjTest  $cloneTestOBJ)
abstract

removes all question set config related data for cloned/copied test

Parameters
ilObjTest$cloneTestOBJ

Referenced by getHiddenTabsOnBrokenDepencies().

+ Here is the caller graph for this function:

◆ cloneToDbForTestId()

ilTestQuestionSetConfig::cloneToDbForTestId (   $testId)
abstract

saves the question set config for test with given id to the database

Parameters
$testId

Referenced by __construct().

+ Here is the caller graph for this function:

◆ deleteFromDb()

ilTestQuestionSetConfig::deleteFromDb ( )
abstract

deletes the question set config for current test from the database

Referenced by __construct().

+ Here is the caller graph for this function:

◆ doesQuestionSetRelatedDataExist()

ilTestQuestionSetConfig::doesQuestionSetRelatedDataExist ( )
abstract

checks wether question set config related data exists or not

Referenced by getHiddenTabsOnBrokenDepencies().

+ Here is the caller graph for this function:

◆ getDepenciesBrokenMessage()

ilTestQuestionSetConfig::getDepenciesBrokenMessage ( ilLanguage  $lng)

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

94  {
95  return '';
96  }

◆ getDepenciesInVulnerableStateMessage()

ilTestQuestionSetConfig::getDepenciesInVulnerableStateMessage ( ilLanguage  $lng)

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

84  {
85  return '';
86  }

◆ getFirstQuestionPoolRefIdByObjId()

ilTestQuestionSetConfig::getFirstQuestionPoolRefIdByObjId ( int  $pool_obj_id)

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

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

145  : int
146  {
147  $refs_ids = ilObject::_getAllReferences($pool_obj_id);
148  $refs_id = current($refs_ids);
149 
150  return (int) $refs_id;
151  }
static _getAllReferences($a_id)
get all reference ids of object
+ Here is the call graph for this function:

◆ getHiddenTabsOnBrokenDepencies()

ilTestQuestionSetConfig::getHiddenTabsOnBrokenDepencies ( )

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

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

104  {
105  return array();
106  }
+ Here is the call graph for this function:

◆ getQuestionPoolPathString()

ilTestQuestionSetConfig::getQuestionPoolPathString (   $poolId)
Parameters
integer$poolId
Returns
string

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

References $path, and ilObject\_getAllReferences().

Referenced by ilObjTestDynamicQuestionSetConfig\getSourceQuestionPoolSummaryString().

137  {
138  $ref_id = current(ilObject::_getAllReferences($poolId));
139 
140  $path = new ilPathGUI();
141  $path->enableTextOnly(true);
142  return $path->getPath(ROOT_FOLDER_ID, $ref_id);
143  }
Creates a path for a start and endnode.
$path
Definition: aliased.php:25
static _getAllReferences($a_id)
get all reference ids of object
+ Here is the call graph for this function:
+ Here is the caller 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 (   $nextClass,
  $cmd 
)

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

99  {
100  return true;
101  }

◆ loadFromDb()

ilTestQuestionSetConfig::loadFromDb ( )
abstract

loads the question set config for current test from the database

Referenced by __construct().

+ Here is the caller graph for this function:

◆ removeQuestionSetRelatedData()

ilTestQuestionSetConfig::removeQuestionSetRelatedData ( )
abstract

removes all question set config related data

Referenced by getHiddenTabsOnBrokenDepencies().

+ Here is the caller graph for this function:

◆ resetQuestionSetRelatedTestSettings()

ilTestQuestionSetConfig::resetQuestionSetRelatedTestSettings ( )
abstract

resets all test settings that depends on a non changed question set config

Referenced by getHiddenTabsOnBrokenDepencies().

+ Here is the caller graph for this function:

◆ saveToDb()

ilTestQuestionSetConfig::saveToDb ( )
abstract

saves the question set config for current test to the database

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $db

ilTestQuestionSetConfig::$db = null
protected

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

Referenced by __construct().

◆ $pluginAdmin

ilTestQuestionSetConfig::$pluginAdmin = null
protected

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

Referenced by __construct().

◆ $testOBJ

ilTestQuestionSetConfig::$testOBJ = null
protected

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

Referenced by __construct().

◆ $tree

ilTestQuestionSetConfig::$tree = null
protected

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

Referenced by __construct().


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