|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilTestRandomQuestionSetConfig:
Collaboration diagram for ilTestRandomQuestionSetConfig:Public Member Functions | |
| setPoolsWithHomogeneousScoredQuestionsRequired ($requirePoolsWithHomogeneousScoredQuestions) | |
| arePoolsWithHomogeneousScoredQuestionsRequired () | |
| setQuestionAmountConfigurationMode ($questionAmountConfigurationMode) | |
| getQuestionAmountConfigurationMode () | |
| isQuestionAmountConfigurationModePerPool () | |
| isQuestionAmountConfigurationModePerTest () | |
| isValidQuestionAmountConfigurationMode ($amountMode) | |
| setQuestionAmountPerTest ($questionAmountPerTest) | |
| getQuestionAmountPerTest () | |
| setLastQuestionSyncTimestamp ($lastQuestionSyncTimestamp) | |
| getLastQuestionSyncTimestamp () | |
| getBuildableMessages () | |
| initFromArray ($dataArray) | |
| initialises the current object instance with values from matching properties within the passed array More... | |
| 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... | |
| isQuestionSetConfigured () | |
| isQuestionAmountConfigComplete () | |
| hasSourcePoolDefinitions () | |
| isQuestionSetBuildable () | |
| 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... | |
| updateLastQuestionSyncTimestampForTestId ($testId, $timestamp) | |
| isResultTaxonomyFilterSupported () | |
| getSelectableQuestionPools () | |
| doesSelectableQuestionPoolsExist () | |
| areDepenciesBroken () | |
| getDepenciesBrokenMessage (ilLanguage $lng) | |
| isValidRequestOnBrokenQuestionSetDepencies ($nextClass, $cmd) | |
| getHiddenTabsOnBrokenDepencies () | |
| getCommaSeparatedSourceQuestionPoolLinks () | |
Public Member Functions inherited from ilTestQuestionSetConfig | |
| __construct (ilTree $tree, ilDBInterface $db, ilComponentRepository $component_repository, 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 () | |
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 | |
| ilTree | $tree |
| ilDBInterface | $db |
| ilComponentRepository | $component_repository |
| ilObjTest | $testOBJ |
Definition at line 27 of file class.ilTestRandomQuestionSetConfig.php.
| ilTestRandomQuestionSetConfig::areDepenciesBroken | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 498 of file class.ilTestRandomQuestionSetConfig.php.
| ilTestRandomQuestionSetConfig::arePoolsWithHomogeneousScoredQuestionsRequired | ( | ) |
Definition at line 67 of file class.ilTestRandomQuestionSetConfig.php.
References $requirePoolsWithHomogeneousScoredQuestions.
Referenced by getSelectableQuestionPools(), insertDbRecord(), and updateDbRecord().
Here is the caller graph for this function:
|
private |
Definition at line 438 of file class.ilTestRandomQuestionSetConfig.php.
References ilTestQuestionSetConfig\$testOBJ.
Referenced by cloneQuestionSetRelatedData(), doesQuestionSetRelatedDataExist(), getCommaSeparatedSourceQuestionPoolLinks(), hasSourcePoolDefinitions(), isQuestionAmountConfigComplete(), isQuestionSetBuildable(), and removeQuestionSetRelatedData().
Here is the caller graph for this function:
|
private |
Definition at line 450 of file class.ilTestRandomQuestionSetConfig.php.
References ilTestQuestionSetConfig\$testOBJ.
Referenced by cloneQuestionSetRelatedData().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::cloneQuestionSetRelatedData | ( | ilObjTest | $cloneTestOBJ | ) |
removes all question set config related data for cloned/copied test
| ilObjTest | $cloneTestOBJ |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 396 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), buildStagingPoolBuilder(), cloneToDbForTestId(), ilObjTest\getTestId(), loadFromDb(), registerClonedSourcePoolDefinitionIdMapping(), and updateLastQuestionSyncTimestampForTestId().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::cloneToDbForTestId | ( | $testId | ) |
saves the question set config for test with given id to the database
| $testId |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 218 of file class.ilTestRandomQuestionSetConfig.php.
References insertDbRecord().
Referenced by cloneQuestionSetRelatedData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
checks wether a question set config for current test exists in the database
| $testId |
Definition at line 243 of file class.ilTestRandomQuestionSetConfig.php.
References $res.
Referenced by doesQuestionSetRelatedDataExist(), and saveToDb().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::deleteFromDb | ( | ) |
deletes the question set config for current test from the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 226 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by removeQuestionSetRelatedData().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::doesQuestionSetRelatedDataExist | ( | ) |
checks wether question set config related data exists or not
Reimplemented from ilTestQuestionSetConfig.
Definition at line 351 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and dbRecordExists().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::doesSelectableQuestionPoolsExist | ( | ) |
Definition at line 491 of file class.ilTestRandomQuestionSetConfig.php.
References getSelectableQuestionPools().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::getBuildableMessages | ( | ) |
Definition at line 149 of file class.ilTestRandomQuestionSetConfig.php.
References $buildableMessages.
| ilTestRandomQuestionSetConfig::getCommaSeparatedSourceQuestionPoolLinks | ( | ) |
Definition at line 546 of file class.ilTestRandomQuestionSetConfig.php.
References $refId, ilObject\_getAllReferences(), ilLink\_getLink(), and buildSourcePoolDefinitionList().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::getDepenciesBrokenMessage | ( | ilLanguage | $lng | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 503 of file class.ilTestRandomQuestionSetConfig.php.
References $lng.
| ilTestRandomQuestionSetConfig::getHiddenTabsOnBrokenDepencies | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 537 of file class.ilTestRandomQuestionSetConfig.php.
| ilTestRandomQuestionSetConfig::getLastQuestionSyncTimestamp | ( | ) |
Definition at line 143 of file class.ilTestRandomQuestionSetConfig.php.
References $lastQuestionSyncTimestamp.
Referenced by insertDbRecord(), isQuestionSetConfigured(), and updateDbRecord().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::getQuestionAmountConfigurationMode | ( | ) |
Definition at line 83 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountConfigurationMode.
Referenced by insertDbRecord(), isQuestionAmountConfigurationModePerPool(), isQuestionAmountConfigurationModePerTest(), and updateDbRecord().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::getQuestionAmountPerTest | ( | ) |
Definition at line 127 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountPerTest.
Referenced by insertDbRecord(), isQuestionAmountConfigComplete(), and updateDbRecord().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::getSelectableQuestionPools | ( | ) |
Definition at line 480 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired().
Referenced by doesSelectableQuestionPoolsExist().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::hasSourcePoolDefinitions | ( | ) |
Definition at line 326 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList().
Referenced by isQuestionSetConfigured().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::initFromArray | ( | $dataArray | ) |
initialises the current object instance with values from matching properties within the passed array
| array | $dataArray |
Definition at line 163 of file class.ilTestRandomQuestionSetConfig.php.
References setLastQuestionSyncTimestamp(), setPoolsWithHomogeneousScoredQuestionsRequired(), setQuestionAmountConfigurationMode(), and setQuestionAmountPerTest().
Referenced by loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
inserts a new record for the question set config for the current test into the database
| $testId |
Definition at line 284 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired(), getLastQuestionSyncTimestamp(), getQuestionAmountConfigurationMode(), and getQuestionAmountPerTest().
Referenced by cloneToDbForTestId(), and saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::isQuestionAmountConfigComplete | ( | ) |
Definition at line 307 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), getQuestionAmountPerTest(), and isQuestionAmountConfigurationModePerPool().
Referenced by isQuestionSetConfigured().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::isQuestionAmountConfigurationModePerPool | ( | ) |
Definition at line 91 of file class.ilTestRandomQuestionSetConfig.php.
References getQuestionAmountConfigurationMode(), and QUESTION_AMOUNT_CONFIG_MODE_PER_POOL.
Referenced by isQuestionAmountConfigComplete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::isQuestionAmountConfigurationModePerTest | ( | ) |
Definition at line 99 of file class.ilTestRandomQuestionSetConfig.php.
References getQuestionAmountConfigurationMode(), and QUESTION_AMOUNT_CONFIG_MODE_PER_TEST.
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::isQuestionSetBuildable | ( | ) |
Definition at line 333 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and ilTestRandomQuestionSetBuilder\getInstance().
Referenced by isQuestionSetConfigured().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::isQuestionSetConfigured | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 297 of file class.ilTestRandomQuestionSetConfig.php.
References getLastQuestionSyncTimestamp(), hasSourcePoolDefinitions(), isQuestionAmountConfigComplete(), and isQuestionSetBuildable().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::isResultTaxonomyFilterSupported | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 473 of file class.ilTestRandomQuestionSetConfig.php.
| ilTestRandomQuestionSetConfig::isValidQuestionAmountConfigurationMode | ( | $amountMode | ) |
Definition at line 104 of file class.ilTestRandomQuestionSetConfig.php.
References QUESTION_AMOUNT_CONFIG_MODE_PER_POOL, and QUESTION_AMOUNT_CONFIG_MODE_PER_TEST.
| ilTestRandomQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies | ( | $nextClass, | |
| $cmd | |||
| ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 508 of file class.ilTestRandomQuestionSetConfig.php.
| ilTestRandomQuestionSetConfig::loadFromDb | ( | ) |
loads the question set config for current test from the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 184 of file class.ilTestRandomQuestionSetConfig.php.
References $res, and initFromArray().
Referenced by cloneQuestionSetRelatedData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 422 of file class.ilTestRandomQuestionSetConfig.php.
References $DIC, ilCopyWizardOptions\_getInstance(), ilObject\getRefId(), and ilObjTest\getTmpCopyWizardCopyId().
Referenced by cloneQuestionSetRelatedData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::removeQuestionSetRelatedData | ( | ) |
removes all question set config related data
Reimplemented from ilTestQuestionSetConfig.
Definition at line 366 of file class.ilTestRandomQuestionSetConfig.php.
References buildSourcePoolDefinitionList(), and deleteFromDb().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::resetQuestionSetRelatedTestSettings | ( | ) |
resets all test settings that depends on a non changed question set config
Reimplemented from ilTestQuestionSetConfig.
Definition at line 381 of file class.ilTestRandomQuestionSetConfig.php.
| ilTestRandomQuestionSetConfig::saveToDb | ( | ) |
saves the question set config for current test to the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 204 of file class.ilTestRandomQuestionSetConfig.php.
References dbRecordExists(), insertDbRecord(), and updateDbRecord().
Here is the call graph for this function:| ilTestRandomQuestionSetConfig::setLastQuestionSyncTimestamp | ( | $lastQuestionSyncTimestamp | ) |
| integer | $lastQuestionSyncTimestamp |
Definition at line 135 of file class.ilTestRandomQuestionSetConfig.php.
References $lastQuestionSyncTimestamp.
Referenced by initFromArray().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::setPoolsWithHomogeneousScoredQuestionsRequired | ( | $requirePoolsWithHomogeneousScoredQuestions | ) |
| boolean | $requirePoolsWithHomogeneousScoredQuestions |
Definition at line 59 of file class.ilTestRandomQuestionSetConfig.php.
References $requirePoolsWithHomogeneousScoredQuestions.
Referenced by initFromArray().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::setQuestionAmountConfigurationMode | ( | $questionAmountConfigurationMode | ) |
| string | $questionAmountConfigurationMode |
Definition at line 75 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountConfigurationMode.
Referenced by initFromArray().
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::setQuestionAmountPerTest | ( | $questionAmountPerTest | ) |
| integer | $questionAmountPerTest |
Definition at line 119 of file class.ilTestRandomQuestionSetConfig.php.
References $questionAmountPerTest.
Referenced by initFromArray().
Here is the caller graph for this function:
|
private |
updates the record in the database that corresponds to the question set config for the current test
| $testId |
Definition at line 262 of file class.ilTestRandomQuestionSetConfig.php.
References arePoolsWithHomogeneousScoredQuestionsRequired(), getLastQuestionSyncTimestamp(), getQuestionAmountConfigurationMode(), and getQuestionAmountPerTest().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestRandomQuestionSetConfig::updateLastQuestionSyncTimestampForTestId | ( | $testId, | |
| $timestamp | |||
| ) |
Definition at line 460 of file class.ilTestRandomQuestionSetConfig.php.
References $timestamp.
Referenced by cloneQuestionSetRelatedData().
Here is the caller graph for this function:
|
private |
Definition at line 53 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getBuildableMessages().
|
private |
Definition at line 50 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getLastQuestionSyncTimestamp(), and setLastQuestionSyncTimestamp().
|
private |
Definition at line 40 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getQuestionAmountConfigurationMode(), and setQuestionAmountConfigurationMode().
|
private |
Definition at line 45 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by getQuestionAmountPerTest(), and setQuestionAmountPerTest().
|
private |
Definition at line 35 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by arePoolsWithHomogeneousScoredQuestionsRequired(), and setPoolsWithHomogeneousScoredQuestionsRequired().
| const ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_POOL = 'POOL' |
Definition at line 30 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetGeneralConfigFormGUI\fetchValidQuestionAmountConfigModeWithFallbackModePerTest(), isQuestionAmountConfigurationModePerPool(), isValidQuestionAmountConfigurationMode(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), ilTestRandomQuestionSetConfigTest\testIsValidQuestionAmountConfigurationMode(), ilTestRandomQuestionSetConfigTest\testQuestionAmountConfigurationModePerPool(), and ilTestRandomQuestionSetConfigTest\testQuestionAmountConfigurationModePerTest().
| const ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_TEST = 'TEST' |
Definition at line 29 of file class.ilTestRandomQuestionSetConfig.php.
Referenced by ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetGeneralConfigFormGUI\fetchValidQuestionAmountConfigModeWithFallbackModePerTest(), isQuestionAmountConfigurationModePerTest(), isValidQuestionAmountConfigurationMode(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), ilTestRandomQuestionSetConfigTest\testIsValidQuestionAmountConfigurationMode(), ilTestRandomQuestionSetConfigTest\testQuestionAmountConfigurationModePerPool(), and ilTestRandomQuestionSetConfigTest\testQuestionAmountConfigurationModePerTest().