ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 More... | |
updateDbRecord ($testId) | |
updates the record in the database that corresponds to the question set config for the current test More... | |
insertDbRecord ($testId) | |
inserts a new record for the question set config for the current test into the database More... | |
registerClonedSourcePoolDefinitionIdMapping (ilObjTest $cloneTestOBJ, $definitionIdMap) | |
buildSourcePoolDefinitionList (ilObjTest $testOBJ) | |
buildStagingPoolBuilder (ilObjTest $testOBJ) | |
Private Attributes | |
$requirePoolsWithHomogeneousScoredQuestions = null | |
$questionAmountConfigurationMode = null | |
$questionAmountPerTest = null | |
$lastQuestionSyncTimestamp = null | |
$buildableMessages = array() | |
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, |
ilDBInterface | $db, | ||
ilPluginAdmin | $pluginAdmin, | ||
ilObjTest | $testOBJ | ||
) |
ilTree | $tree | |
ilDBInterface | $db | |
ilPluginAdmin | $pluginAdmin | |
ilObjTest | $testOBJ |
Definition at line 49 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::areDepenciesBroken | ( | ) |
Definition at line 514 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::arePoolsWithHomogeneousScoredQuestionsRequired | ( | ) |
Definition at line 65 of file class.ilTestRandomQuestionSetConfig.php.
References $requirePoolsWithHomogeneousScoredQuestions.
Referenced by getSelectableQuestionPools(), insertDbRecord(), and updateDbRecord().
|
private |
Definition at line 448 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by cloneQuestionSetRelatedData(), doesQuestionSetRelatedDataExist(), getCommaSeparatedSourceQuestionPoolLinks(), hasSourcePoolDefinitions(), isQuestionSetBuildable(), isQuestionSetConfigured(), and removeQuestionSetRelatedData().
|
private |
Definition at line 466 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by cloneQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::cloneQuestionSetRelatedData | ( | ilObjTest | $cloneTestOBJ | ) |
removes all question set config related data for cloned/copied test
ilObjTest | $cloneTestOBJ |
Definition at line 407 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), buildStagingPoolBuilder(), cloneToDbForTestId(), ilObjTest\getTestId(), loadFromDb(), registerClonedSourcePoolDefinitionIdMapping(), time, and updateLastQuestionSyncTimestampForTestId().
ilTestRandomQuestionSetConfig::cloneToDbForTestId | ( | $testId | ) |
saves the question set config for test with given id to the database
$testId |
Definition at line 214 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 239 of file class.ilTestRandomQuestionSetConfig.php.
References $res, $row, and array.
Referenced by doesQuestionSetRelatedDataExist(), and saveToDb().
ilTestRandomQuestionSetConfig::deleteFromDb | ( | ) |
deletes the question set config for current test from the database
Definition at line 222 of file class.ilTestRandomQuestionSetConfig.php.
References array.
Referenced by removeQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::doesQuestionSetRelatedDataExist | ( | ) |
Definition at line 364 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and dbRecordExists().
ilTestRandomQuestionSetConfig::doesSelectableQuestionPoolsExist | ( | ) |
Definition at line 507 of file class.ilTestRandomQuestionSetConfig.php.
References getSelectableQuestionPools().
ilTestRandomQuestionSetConfig::getBuildableMessages | ( | ) |
Definition at line 147 of file class.ilTestRandomQuestionSetConfig.php.
References $buildableMessages.
ilTestRandomQuestionSetConfig::getCommaSeparatedSourceQuestionPoolLinks | ( | ) |
Definition at line 562 of file class.ilTestRandomQuestionSetConfig.php.
References $title, ilObject\_getAllReferences(), ilLink\_getLink(), array, and buildSourcePoolDefinitionList().
ilTestRandomQuestionSetConfig::getDepenciesBrokenMessage | ( | ilLanguage | $lng | ) |
Definition at line 519 of file class.ilTestRandomQuestionSetConfig.php.
References ilLanguage\txt().
ilTestRandomQuestionSetConfig::getHiddenTabsOnBrokenDepencies | ( | ) |
ilTestRandomQuestionSetConfig::getLastQuestionSyncTimestamp | ( | ) |
Definition at line 141 of file class.ilTestRandomQuestionSetConfig.php.
References $lastQuestionSyncTimestamp.
Referenced by insertDbRecord(), isQuestionSetConfigured(), and updateDbRecord().
ilTestRandomQuestionSetConfig::getQuestionAmountConfigurationMode | ( | ) |
Definition at line 81 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountConfigurationMode.
Referenced by ilTestRandomQuestionSetGeneralConfigFormGUI\fetchValidQuestionAmountConfigModeWithFallbackModePerTest(), insertDbRecord(), isQuestionAmountConfigurationModePerPool(), isQuestionAmountConfigurationModePerTest(), and updateDbRecord().
ilTestRandomQuestionSetConfig::getQuestionAmountPerTest | ( | ) |
Definition at line 125 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountPerTest.
Referenced by insertDbRecord(), isQuestionSetConfigured(), and updateDbRecord().
ilTestRandomQuestionSetConfig::getSelectableQuestionPools | ( | ) |
Definition at line 496 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired().
Referenced by doesSelectableQuestionPoolsExist().
ilTestRandomQuestionSetConfig::hasSourcePoolDefinitions | ( | ) |
Definition at line 337 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 161 of file class.ilTestRandomQuestionSetConfig.php.
References $dataArray, 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 280 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired(), array, getLastQuestionSyncTimestamp(), getQuestionAmountConfigurationMode(), and getQuestionAmountPerTest().
Referenced by cloneToDbForTestId(), and saveToDb().
ilTestRandomQuestionSetConfig::isQuestionAmountConfigurationModePerPool | ( | ) |
Definition at line 89 of file class.ilTestRandomQuestionSetConfig.php.
References getQuestionAmountConfigurationMode().
Referenced by ilTestRandomQuestionSetBuilder\getInstance(), and isQuestionSetConfigured().
ilTestRandomQuestionSetConfig::isQuestionAmountConfigurationModePerTest | ( | ) |
Definition at line 97 of file class.ilTestRandomQuestionSetConfig.php.
References getQuestionAmountConfigurationMode().
ilTestRandomQuestionSetConfig::isQuestionSetBuildable | ( | ) |
Definition at line 344 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and ilTestRandomQuestionSetBuilder\getInstance().
Referenced by isQuestionSetConfigured().
ilTestRandomQuestionSetConfig::isQuestionSetConfigured | ( | ) |
Definition at line 293 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), getLastQuestionSyncTimestamp(), getQuestionAmountPerTest(), hasSourcePoolDefinitions(), isQuestionAmountConfigurationModePerPool(), and isQuestionSetBuildable().
ilTestRandomQuestionSetConfig::isResultTaxonomyFilterSupported | ( | ) |
Definition at line 489 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::isValidQuestionAmountConfigurationMode | ( | $amountMode | ) |
Definition at line 102 of file class.ilTestRandomQuestionSetConfig.php.
ilTestRandomQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies | ( | $nextClass, | |
$cmd | |||
) |
ilTestRandomQuestionSetConfig::loadFromDb | ( | ) |
loads the question set config for current test from the database
Definition at line 178 of file class.ilTestRandomQuestionSetConfig.php.
References $res, $row, array, and initFromArray().
Referenced by cloneQuestionSetRelatedData().
|
private |
Definition at line 433 of file class.ilTestRandomQuestionSetConfig.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), ilObject\getRefId(), and ilObjTest\getTmpCopyWizardCopyId().
Referenced by cloneQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::removeQuestionSetRelatedData | ( | ) |
Definition at line 379 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), deleteFromDb(), and resetQuestionSetRelatedTestSettings().
ilTestRandomQuestionSetConfig::resetQuestionSetRelatedTestSettings | ( | ) |
Definition at line 396 of file class.ilTestRandomQuestionSetConfig.php.
References array.
Referenced by removeQuestionSetRelatedData().
ilTestRandomQuestionSetConfig::saveToDb | ( | ) |
saves the question set config for current test to the database
Definition at line 200 of file class.ilTestRandomQuestionSetConfig.php.
References dbRecordExists(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetConfig::setLastQuestionSyncTimestamp | ( | $lastQuestionSyncTimestamp | ) |
integer | $lastQuestionSyncTimestamp |
Definition at line 133 of file class.ilTestRandomQuestionSetConfig.php.
References $lastQuestionSyncTimestamp.
Referenced by initFromArray().
ilTestRandomQuestionSetConfig::setPoolsWithHomogeneousScoredQuestionsRequired | ( | $requirePoolsWithHomogeneousScoredQuestions | ) |
boolean | $requirePoolsWithHomogeneousScoredQuestions |
Definition at line 57 of file class.ilTestRandomQuestionSetConfig.php.
References $requirePoolsWithHomogeneousScoredQuestions.
Referenced by initFromArray().
ilTestRandomQuestionSetConfig::setQuestionAmountConfigurationMode | ( | $questionAmountConfigurationMode | ) |
string | $questionAmountConfigurationMode |
Definition at line 73 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountConfigurationMode.
Referenced by initFromArray().
ilTestRandomQuestionSetConfig::setQuestionAmountPerTest | ( | $questionAmountPerTest | ) |
integer | $questionAmountPerTest |
Definition at line 117 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 258 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired(), array, getLastQuestionSyncTimestamp(), getQuestionAmountConfigurationMode(), and getQuestionAmountPerTest().
Referenced by saveToDb().
ilTestRandomQuestionSetConfig::updateLastQuestionSyncTimestampForTestId | ( | $testId, | |
$timestamp | |||
) |
Definition at line 476 of file class.ilTestRandomQuestionSetConfig.php.
References $timestamp, and array.
Referenced by cloneQuestionSetRelatedData().
|
private |
Definition at line 40 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getBuildableMessages().
|
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' |
const ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_TEST = 'TEST' |