ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct (ilTree $tree, ilDB $db, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ) | |
setPoolsWithHomogeneousScoredQuestionsRequired ($requirePoolsWithHomogeneousScoredQuestions) | |
arePoolsWithHomogeneousScoredQuestionsRequired () | |
setQuestionAmountConfigurationMode ($questionAmountConfigurationMode) | |
getQuestionAmountConfigurationMode () | |
isQuestionAmountConfigurationModePerPool () | |
isQuestionAmountConfigurationModePerTest () | |
setQuestionAmountPerTest ($questionAmountPerTest) | |
getQuestionAmountPerTest () | |
setLastQuestionSyncTimestamp ($lastQuestionSyncTimestamp) | |
getLastQuestionSyncTimestamp () | |
initFromArray ($dataArray) | |
initialises the current object instance with values from matching properties within the passed array | |
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 | |
isQuestionSetConfigured () | |
hasSourcePoolDefinitions () | |
isQuestionSetBuildable () | |
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 | |
updateLastQuestionSyncTimestampForTestId ($testId, $timestamp) | |
isResultTaxonomyFilterSupported () | |
getSelectableQuestionPools () | |
doesSelectableQuestionPoolsExist () | |
areDepenciesBroken () | |
getDepenciesBrokenMessage (ilLanguage $lng) | |
isValidRequestOnBrokenQuestionSetDepencies ($nextClass, $cmd) | |
getHiddenTabsOnBrokenDepencies () | |
Public Member Functions inherited from ilTestQuestionSetConfig | |
areDepenciesInVulnerableState () | |
getDepenciesInVulnerableStateMessage (ilLanguage $lng) | |
getQuestionPoolPathString ($poolId) |
Data Fields | |
const | QUESTION_AMOUNT_CONFIG_MODE_PER_TEST = 'TEST' |
const | QUESTION_AMOUNT_CONFIG_MODE_PER_POOL = 'POOL' |
Private Member Functions | |
dbRecordExists ($testId) | |
checks wether a question set config for current test exists in the database | |
updateDbRecord ($testId) | |
updates the record in the database that corresponds to the question set config for the current test | |
insertDbRecord ($testId) | |
inserts a new record for the question set config for the current test into the database | |
buildSourcePoolDefinitionList (ilObjTest $testOBJ) | |
buildStagingPoolBuilder (ilObjTest $testOBJ) |
Private Attributes | |
$requirePoolsWithHomogeneousScoredQuestions = null | |
$questionAmountConfigurationMode = null | |
$questionAmountPerTest = null | |
$lastQuestionSyncTimestamp = null |
Additional Inherited Members | |
Protected Attributes inherited from ilTestQuestionSetConfig | |
$tree = null | |
$db = null | |
$pluginAdmin = null | |
$testOBJ = null |
Definition at line 14 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::__construct | ( | ilTree | $tree, |
ilDB | $db, | ||
ilPluginAdmin | $pluginAdmin, | ||
ilObjTest | $testOBJ | ||
) |
ilTree | $tree | |
ilDB | $db | |
ilPluginAdmin | $pluginAdmin | |
ilObjTest | $testOBJ |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 45 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::areDepenciesBroken | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 466 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::arePoolsWithHomogeneousScoredQuestionsRequired | ( | ) |
Definition at line 61 of file class.ilTestRandomQuestionSetConfig.php.
References $requirePoolsWithHomogeneousScoredQuestions.
Referenced by getSelectableQuestionPools(), insertDbRecord(), and updateDbRecord().
|
private |
Definition at line 408 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by cloneQuestionSetRelatedData(), doesQuestionSetRelatedDataExist(), hasSourcePoolDefinitions(), isQuestionSetBuildable(), and removeQuestionSetRelatedData().
|
private |
Definition at line 423 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by cloneQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::cloneQuestionSetRelatedData | ( | $cloneTestOBJ | ) |
removes all question set config related data for cloned/copied test
ilObjTest | $cloneTestOBJ |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 383 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), buildStagingPoolBuilder(), cloneToDbForTestId(), loadFromDb(), and updateLastQuestionSyncTimestampForTestId().
ilTestRandomQuestionSetConfig::cloneToDbForTestId | ( | $testId | ) |
saves the question set config for test with given id to the database
$testId |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 196 of file class.ilTestRandomQuestionSetConfig.php.
References insertDbRecord().
Referenced by cloneQuestionSetRelatedData().
|
private |
checks wether a question set config for current test exists in the database
$testId |
Definition at line 220 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by doesQuestionSetRelatedDataExist(), and saveToDb().
ilTestRandomQuestionSetConfig::deleteFromDb | ( | ) |
deletes the question set config for current test from the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 204 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by removeQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::doesQuestionSetRelatedDataExist | ( | ) |
checks wether question set config related data exists or not
Reimplemented from ilTestQuestionSetConfig.
Definition at line 339 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and dbRecordExists().
ilTestRandomQuestionSetConfig::doesSelectableQuestionPoolsExist | ( | ) |
Definition at line 459 of file class.ilTestRandomQuestionSetConfig.php.
References getSelectableQuestionPools().
ilTestRandomQuestionSetConfig::getDepenciesBrokenMessage | ( | ilLanguage | $lng | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 471 of file class.ilTestRandomQuestionSetConfig.php.
References ilLanguage\txt().
ilTestRandomQuestionSetConfig::getHiddenTabsOnBrokenDepencies | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 507 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::getLastQuestionSyncTimestamp | ( | ) |
Definition at line 125 of file class.ilTestRandomQuestionSetConfig.php.
References $lastQuestionSyncTimestamp.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetConfig::getQuestionAmountConfigurationMode | ( | ) |
Definition at line 77 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountConfigurationMode.
Referenced by ilTestRandomQuestionSetGeneralConfigFormGUI\fetchValidQuestionAmountConfigModeWithFallbackModePerTest(), insertDbRecord(), isQuestionAmountConfigurationModePerPool(), isQuestionAmountConfigurationModePerTest(), and updateDbRecord().
ilTestRandomQuestionSetConfig::getQuestionAmountPerTest | ( | ) |
Definition at line 109 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountPerTest.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetConfig::getSelectableQuestionPools | ( | ) |
Definition at line 452 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired().
Referenced by doesSelectableQuestionPoolsExist().
ilTestRandomQuestionSetConfig::hasSourcePoolDefinitions | ( | ) |
Definition at line 318 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList().
Referenced by isQuestionSetConfigured().
ilTestRandomQuestionSetConfig::initFromArray | ( | $dataArray | ) |
initialises the current object instance with values from matching properties within the passed array
array | $dataArray |
Definition at line 138 of file class.ilTestRandomQuestionSetConfig.php.
References setLastQuestionSyncTimestamp(), setPoolsWithHomogeneousScoredQuestionsRequired(), setQuestionAmountConfigurationMode(), and setQuestionAmountPerTest().
Referenced by loadFromDb().
|
private |
inserts a new record for the question set config for the current test into the database
$testId |
Definition at line 259 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired(), getLastQuestionSyncTimestamp(), getQuestionAmountConfigurationMode(), and getQuestionAmountPerTest().
Referenced by cloneToDbForTestId(), and saveToDb().
ilTestRandomQuestionSetConfig::isQuestionAmountConfigurationModePerPool | ( | ) |
Definition at line 85 of file class.ilTestRandomQuestionSetConfig.php.
References getQuestionAmountConfigurationMode(), and QUESTION_AMOUNT_CONFIG_MODE_PER_POOL.
Referenced by ilTestRandomQuestionSetBuilder\getInstance().
ilTestRandomQuestionSetConfig::isQuestionAmountConfigurationModePerTest | ( | ) |
Definition at line 93 of file class.ilTestRandomQuestionSetConfig.php.
References getQuestionAmountConfigurationMode(), and QUESTION_AMOUNT_CONFIG_MODE_PER_TEST.
ilTestRandomQuestionSetConfig::isQuestionSetBuildable | ( | ) |
Definition at line 325 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and ilTestRandomQuestionSetBuilder\getInstance().
Referenced by isQuestionSetConfigured().
ilTestRandomQuestionSetConfig::isQuestionSetConfigured | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 272 of file class.ilTestRandomQuestionSetConfig.php.
References hasSourcePoolDefinitions(), and isQuestionSetBuildable().
ilTestRandomQuestionSetConfig::isResultTaxonomyFilterSupported | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 445 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies | ( | $nextClass, | |
$cmd | |||
) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 476 of file class.ilTestRandomQuestionSetConfig.php.
References $cmd.
ilTestRandomQuestionSetConfig::loadFromDb | ( | ) |
loads the question set config for current test from the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 157 of file class.ilTestRandomQuestionSetConfig.php.
References $res, $row, and initFromArray().
Referenced by cloneQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::removeQuestionSetRelatedData | ( | ) |
removes all question set config related data
Reimplemented from ilTestQuestionSetConfig.
Definition at line 356 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), deleteFromDb(), and resetQuestionSetRelatedTestSettings().
ilTestRandomQuestionSetConfig::resetQuestionSetRelatedTestSettings | ( | ) |
resets all test settings that depends on a non changed question set config
Reimplemented from ilTestQuestionSetConfig.
Definition at line 372 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by removeQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::saveToDb | ( | ) |
saves the question set config for current test to the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 179 of file class.ilTestRandomQuestionSetConfig.php.
References dbRecordExists(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetConfig::setLastQuestionSyncTimestamp | ( | $lastQuestionSyncTimestamp | ) |
integer | $lastQuestionSyncTimestamp |
Definition at line 117 of file class.ilTestRandomQuestionSetConfig.php.
References $lastQuestionSyncTimestamp.
Referenced by initFromArray().
ilTestRandomQuestionSetConfig::setPoolsWithHomogeneousScoredQuestionsRequired | ( | $requirePoolsWithHomogeneousScoredQuestions | ) |
boolean | $requirePoolsWithHomogeneousScoredQuestions |
Definition at line 53 of file class.ilTestRandomQuestionSetConfig.php.
References $requirePoolsWithHomogeneousScoredQuestions.
Referenced by initFromArray().
ilTestRandomQuestionSetConfig::setQuestionAmountConfigurationMode | ( | $questionAmountConfigurationMode | ) |
string | $questionAmountConfigurationMode |
Definition at line 69 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountConfigurationMode.
Referenced by initFromArray().
ilTestRandomQuestionSetConfig::setQuestionAmountPerTest | ( | $questionAmountPerTest | ) |
integer | $questionAmountPerTest |
Definition at line 101 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountPerTest.
Referenced by initFromArray().
|
private |
updates the record in the database that corresponds to the question set config for the current test
$testId |
Definition at line 238 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired(), getLastQuestionSyncTimestamp(), getQuestionAmountConfigurationMode(), and getQuestionAmountPerTest().
Referenced by saveToDb().
ilTestRandomQuestionSetConfig::updateLastQuestionSyncTimestampForTestId | ( | $testId, | |
$timestamp | |||
) |
Definition at line 433 of file class.ilTestRandomQuestionSetConfig.php.
References $timestamp.
Referenced by cloneQuestionSetRelatedData().
|
private |
Definition at line 37 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getLastQuestionSyncTimestamp(), and setLastQuestionSyncTimestamp().
|
private |
Definition at line 27 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getQuestionAmountConfigurationMode(), and setQuestionAmountConfigurationMode().
|
private |
Definition at line 32 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getQuestionAmountPerTest(), and setQuestionAmountPerTest().
|
private |
Definition at line 22 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by arePoolsWithHomogeneousScoredQuestionsRequired(), and setPoolsWithHomogeneousScoredQuestionsRequired().
const ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_POOL = 'POOL' |
Definition at line 17 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetGeneralConfigFormGUI\fetchValidQuestionAmountConfigModeWithFallbackModePerTest(), isQuestionAmountConfigurationModePerPool(), and ilTestRandomQuestionSetGeneralConfigFormGUI\save().
const ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_TEST = 'TEST' |
Definition at line 16 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetGeneralConfigFormGUI\fetchValidQuestionAmountConfigModeWithFallbackModePerTest(), isQuestionAmountConfigurationModePerTest(), and ilTestRandomQuestionSetGeneralConfigFormGUI\save().