ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)
 
 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

Reimplemented in ilTestRandomQuestionSetConfig.

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

References $db, $pluginAdmin, $testOBJ, and $tree.

Member Function Documentation

◆ areDepenciesBroken()

ilTestQuestionSetConfig::areDepenciesBroken ( )

Reimplemented in ilObjTestDynamicQuestionSetConfig, and ilTestRandomQuestionSetConfig.

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

89 {
90 return false;
91 }

◆ areDepenciesInVulnerableState()

ilTestQuestionSetConfig::areDepenciesInVulnerableState ( )

Reimplemented in ilObjTestDynamicQuestionSetConfig.

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

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ cloneToDbForTestId()

ilTestQuestionSetConfig::cloneToDbForTestId (   $testId)
abstract

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

Parameters
$testId

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ deleteFromDb()

ilTestQuestionSetConfig::deleteFromDb ( )
abstract

deletes the question set config for current test from the database

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ doesQuestionSetRelatedDataExist()

ilTestQuestionSetConfig::doesQuestionSetRelatedDataExist ( )
abstract

checks wether question set config related data exists or not

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ getDepenciesBrokenMessage()

ilTestQuestionSetConfig::getDepenciesBrokenMessage ( ilLanguage  $lng)

Reimplemented in ilObjTestDynamicQuestionSetConfig, and ilTestRandomQuestionSetConfig.

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

94 {
95 return '';
96 }

◆ getDepenciesInVulnerableStateMessage()

ilTestQuestionSetConfig::getDepenciesInVulnerableStateMessage ( ilLanguage  $lng)

Reimplemented in ilObjTestDynamicQuestionSetConfig.

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

84 {
85 return '';
86 }

◆ getHiddenTabsOnBrokenDepencies()

ilTestQuestionSetConfig::getHiddenTabsOnBrokenDepencies ( )

Reimplemented in ilObjTestDynamicQuestionSetConfig, and ilTestRandomQuestionSetConfig.

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

104 {
105 return array();
106 }

◆ getQuestionPoolPathString()

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

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

137 {
138 $nodePath = $this->tree->getNodePath(
139 current(ilObject::_getAllReferences($poolId))
140 );
141
142 $questionPoolPathString = '';
143
144 $i = 0;
145 $j = count($nodePath) - 2;
146
147 foreach ($nodePath as $node) {
148 if ($i > 0) {
149 $questionPoolPathString .= ' > ';
150 }
151
152 $questionPoolPathString .= $node['title'];
153
154 if ($i == $j) {
155 break;
156 }
157
158 $i++;
159 }
160
161 return $questionPoolPathString;
162 }
static _getAllReferences($a_id)
get all reference ids of object
$i
Definition: disco.tpl.php:19

References $i, and ilObject\_getAllReferences().

+ Here is the call graph for this function:

◆ isQuestionSetConfigured()

ilTestQuestionSetConfig::isQuestionSetConfigured ( )
abstract

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

Referenced by ilObjTest\isComplete().

+ Here is the caller graph for this function:

◆ isResultTaxonomyFilterSupported()

ilTestQuestionSetConfig::isResultTaxonomyFilterSupported ( )
abstract

◆ isValidRequestOnBrokenQuestionSetDepencies()

ilTestQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies (   $nextClass,
  $cmd 
)

Reimplemented in ilObjTestDynamicQuestionSetConfig, and ilTestRandomQuestionSetConfig.

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

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ removeQuestionSetRelatedData()

ilTestQuestionSetConfig::removeQuestionSetRelatedData ( )
abstract

removes all question set config related data

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ resetQuestionSetRelatedTestSettings()

ilTestQuestionSetConfig::resetQuestionSetRelatedTestSettings ( )
abstract

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

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

◆ saveToDb()

ilTestQuestionSetConfig::saveToDb ( )
abstract

saves the question set config for current test to the database

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestFixedQuestionSetConfig, and ilTestRandomQuestionSetConfig.

Field Documentation

◆ $db

◆ $pluginAdmin

ilTestQuestionSetConfig::$pluginAdmin = null
protected

◆ $testOBJ

◆ $tree

ilTestQuestionSetConfig::$tree = null
protected

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