ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestQuestionSetConfig Class Reference
+ Inheritance diagram for ilTestQuestionSetConfig:
+ Collaboration diagram for ilTestQuestionSetConfig:

Public Member Functions

 __construct (ilTree $tree, ilDB $db, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ)
 loadFromDb ()
 loads the question set config for current test from the database
 saveToDb ()
 saves the question set config for current test to the database
 cloneToDbForTestId ($testId)
 saves the question set config for test with given id to the database
 deleteFromDb ()
 deletes the question set config for current test from the database
 areDepenciesInVulnerableState ()
 getDepenciesInVulnerableStateMessage (ilLanguage $lng)
 areDepenciesBroken ()
 getDepenciesBrokenMessage (ilLanguage $lng)
 isValidRequestOnBrokenQuestionSetDepencies ($nextClass, $cmd)
 getHiddenTabsOnBrokenDepencies ()
 isQuestionSetConfigured ()
 doesQuestionSetRelatedDataExist ()
 checks wether question set config related data exists or not
 removeQuestionSetRelatedData ()
 removes all question set config related data
 resetQuestionSetRelatedTestSettings ()
 resets all test settings that depends on a non changed question set config
 cloneQuestionSetRelatedData ($cloneTestOBJ)
 removes all question set config related data for cloned/copied test
 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

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

Reimplemented in ilTestRandomQuestionSetConfig.

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

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

{
$this->tree = $tree;
$this->db = $db;
$this->pluginAdmin = $pluginAdmin;
$this->testOBJ = $testOBJ;
}

Member Function Documentation

ilTestQuestionSetConfig::areDepenciesBroken ( )

Reimplemented in ilTestRandomQuestionSetConfig, and ilObjTestDynamicQuestionSetConfig.

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

{
return false;
}
ilTestQuestionSetConfig::areDepenciesInVulnerableState ( )

Reimplemented in ilObjTestDynamicQuestionSetConfig.

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

{
return false;
}
ilTestQuestionSetConfig::cloneQuestionSetRelatedData (   $cloneTestOBJ)
abstract

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

Parameters
ilObjTest$cloneTestOBJ

Reimplemented in ilTestRandomQuestionSetConfig, ilObjTestDynamicQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::cloneToDbForTestId (   $testId)
abstract

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

Parameters
$testId

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestRandomQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::deleteFromDb ( )
abstract

deletes the question set config for current test from the database

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestRandomQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::doesQuestionSetRelatedDataExist ( )
abstract

checks wether question set config related data exists or not

Reimplemented in ilTestRandomQuestionSetConfig, ilObjTestDynamicQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::getDepenciesBrokenMessage ( ilLanguage  $lng)

Reimplemented in ilTestRandomQuestionSetConfig, and ilObjTestDynamicQuestionSetConfig.

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

{
return '';
}
ilTestQuestionSetConfig::getDepenciesInVulnerableStateMessage ( ilLanguage  $lng)

Reimplemented in ilObjTestDynamicQuestionSetConfig.

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

{
return '';
}
ilTestQuestionSetConfig::getHiddenTabsOnBrokenDepencies ( )

Reimplemented in ilTestRandomQuestionSetConfig, and ilObjTestDynamicQuestionSetConfig.

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

{
return array();
}
ilTestQuestionSetConfig::getQuestionPoolPathString (   $poolId)
Parameters
integer$poolId
Returns
string

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

References ilObject\_getAllReferences().

Referenced by ilObjTestDynamicQuestionSetConfig\getSourceQuestionPoolSummaryString().

{
$nodePath = $this->tree->getNodePath(
current(ilObject::_getAllReferences($poolId))
);
$questionPoolPathString = '';
$i = 0;
$j = count($nodePath) - 2;
foreach($nodePath as $node)
{
if( $i > 0 )
{
$questionPoolPathString .= ' > ';
}
$questionPoolPathString .= $node['title'];
if( $i == $j )
{
break;
}
$i++;
}
return $questionPoolPathString;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestQuestionSetConfig::isQuestionSetConfigured ( )
abstract

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestRandomQuestionSetConfig, and ilTestFixedQuestionSetConfig.

Referenced by ilObjTest\isComplete().

+ Here is the caller graph for this function:

ilTestQuestionSetConfig::isResultTaxonomyFilterSupported ( )
abstract
ilTestQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies (   $nextClass,
  $cmd 
)

Reimplemented in ilTestRandomQuestionSetConfig, and ilObjTestDynamicQuestionSetConfig.

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

{
return true;
}
ilTestQuestionSetConfig::loadFromDb ( )
abstract

loads the question set config for current test from the database

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestRandomQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::removeQuestionSetRelatedData ( )
abstract

removes all question set config related data

Reimplemented in ilTestRandomQuestionSetConfig, ilObjTestDynamicQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::resetQuestionSetRelatedTestSettings ( )
abstract

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

Reimplemented in ilTestRandomQuestionSetConfig, ilObjTestDynamicQuestionSetConfig, and ilTestFixedQuestionSetConfig.

ilTestQuestionSetConfig::saveToDb ( )
abstract

saves the question set config for current test to the database

Reimplemented in ilObjTestDynamicQuestionSetConfig, ilTestRandomQuestionSetConfig, and ilTestFixedQuestionSetConfig.

Field Documentation

ilTestQuestionSetConfig::$db = null
protected

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

Referenced by __construct().

ilTestQuestionSetConfig::$pluginAdmin = null
protected

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

Referenced by __construct().

ilTestQuestionSetConfig::$testOBJ = null
protected

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

Referenced by __construct().

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: