ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
getSourceQuestionPoolId () | |
getter for source question pool id | |
setSourceQuestionPoolId ($sourceQuestionPoolId) | |
getter for source question pool id | |
getSourceQuestionPoolTitle () | |
getter for source question pool title | |
setSourceQuestionPoolTitle ($sourceQuestionPoolTitle) | |
getter for source question pool title | |
isAnswerStatusFilterEnabled () | |
setAnswerStatusFilterEnabled ($answerStatusFilterEnabled) | |
isTaxonomyFilterEnabled () | |
isser for taxonomie filter enabled | |
setTaxonomyFilterEnabled ($taxonomyFilterEnabled) | |
setter for taxonomie filter enabled | |
getOrderingTaxonomyId () | |
setter for ordering taxonomy id | |
setOrderingTaxonomyId ($orderingTaxonomyId) | |
getter for ordering taxonomy id | |
isPreviousQuestionsListEnabled () | |
setPreviousQuestionsListEnabled ($previousQuestionsListEnabled) | |
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 () | |
returns the fact wether a useable question set config exists or not | |
doesQuestionSetRelatedDataExist () | |
returns the fact wether a useable question set config exists or not | |
removeQuestionSetRelatedData () | |
removes all question set config related data (in this case it's only the config itself) | |
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 | |
getSourceQuestionPoolSummaryString (ilLanguage $lng) | |
areDepenciesInVulnerableState () | |
getDepenciesInVulnerableStateMessage (ilLanguage $lng) | |
areDepenciesBroken () | |
getDepenciesBrokenMessage (ilLanguage $lng) | |
isValidRequestOnBrokenQuestionSetDepencies ($nextClass, $cmd) | |
getHiddenTabsOnBrokenDepencies () | |
getSourceQuestionPoolRefIds () | |
isResultTaxonomyFilterSupported () | |
isAnyQuestionFilterEnabled () | |
Public Member Functions inherited from ilTestQuestionSetConfig | |
__construct (ilTree $tree, ilDB $db, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ) | |
getQuestionPoolPathString ($poolId) |
Static Public Member Functions | |
static | getPoolQuestionChangeListener (ilDB $db, $poolObjId) |
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 | |
getSourceQuestionPoolNumQuestions () |
Private Attributes | |
$sourceQuestionPoolId = null | |
$answerStatusFilterEnabled = null | |
$taxonomyFilterEnabled = null | |
$orderingTaxonomyId = null | |
$previousQuestionsListEnabled = null | |
$sourceQuestionPoolRefIds = null |
Additional Inherited Members | |
Protected Attributes inherited from ilTestQuestionSetConfig | |
$tree = null | |
$db = null | |
$pluginAdmin = null | |
$testOBJ = null |
Definition at line 14 of file class.ilObjTestDynamicQuestionSetConfig.php.
ilObjTestDynamicQuestionSetConfig::areDepenciesBroken | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 440 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getSourceQuestionPoolId(), and getSourceQuestionPoolRefIds().
ilObjTestDynamicQuestionSetConfig::areDepenciesInVulnerableState | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 411 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getSourceQuestionPoolId(), and getSourceQuestionPoolRefIds().
ilObjTestDynamicQuestionSetConfig::cloneQuestionSetRelatedData | ( | $cloneTestOBJ | ) |
removes all question set config related data for cloned/copied test
ilObjTest | $cloneTestOBJ |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 343 of file class.ilObjTestDynamicQuestionSetConfig.php.
References cloneToDbForTestId(), and loadFromDb().
ilObjTestDynamicQuestionSetConfig::cloneToDbForTestId | ( | $testId | ) |
saves the question set config for test with given id to the database
$testId |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 224 of file class.ilObjTestDynamicQuestionSetConfig.php.
References insertDbRecord().
Referenced by cloneQuestionSetRelatedData().
|
private |
checks wether a question set config for current test exists in the database
$testId |
Definition at line 250 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by saveToDb().
ilObjTestDynamicQuestionSetConfig::deleteFromDb | ( | ) |
deletes the question set config for current test from the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 234 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by removeQuestionSetRelatedData().
ilObjTestDynamicQuestionSetConfig::doesQuestionSetRelatedDataExist | ( | ) |
returns the fact wether a useable question set config exists or not
Reimplemented from ilTestQuestionSetConfig.
Definition at line 319 of file class.ilObjTestDynamicQuestionSetConfig.php.
References isQuestionSetConfigured().
ilObjTestDynamicQuestionSetConfig::getDepenciesBrokenMessage | ( | ilLanguage | $lng | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 457 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getSourceQuestionPoolTitle(), and ilLanguage\txt().
ilObjTestDynamicQuestionSetConfig::getDepenciesInVulnerableStateMessage | ( | ilLanguage | $lng | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 431 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getSourceQuestionPoolTitle(), and ilLanguage\txt().
ilObjTestDynamicQuestionSetConfig::getHiddenTabsOnBrokenDepencies | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 504 of file class.ilObjTestDynamicQuestionSetConfig.php.
ilObjTestDynamicQuestionSetConfig::getOrderingTaxonomyId | ( | ) |
setter for ordering taxonomy id
Definition at line 129 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $orderingTaxonomyId.
Referenced by ilTestDynamicQuestionSet\initActualQuestionSequence(), ilTestDynamicQuestionSet\initFilteredQuestionList(), insertDbRecord(), and updateDbRecord().
|
static |
integer | $poolObjId |
Definition at line 527 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $query, $res, $row, ilDB\fetchAssoc(), and ilDB\queryF().
Referenced by ilObjTest\getPoolQuestionChangeListeners().
ilObjTestDynamicQuestionSetConfig::getSourceQuestionPoolId | ( | ) |
getter for source question pool id
Definition at line 53 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $sourceQuestionPoolId.
Referenced by areDepenciesBroken(), areDepenciesInVulnerableState(), getSourceQuestionPoolNumQuestions(), getSourceQuestionPoolRefIds(), getSourceQuestionPoolSummaryString(), ilTestDynamicQuestionSet\initCompleteQuestionList(), ilTestDynamicQuestionSet\initFilteredQuestionList(), insertDbRecord(), isQuestionSetConfigured(), and updateDbRecord().
|
private |
Definition at line 395 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $query, $res, $row, and getSourceQuestionPoolId().
Referenced by getSourceQuestionPoolSummaryString().
ilObjTestDynamicQuestionSetConfig::getSourceQuestionPoolRefIds | ( | ) |
Definition at line 513 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $sourceQuestionPoolRefIds, ilObject\_getAllReferences(), and getSourceQuestionPoolId().
Referenced by areDepenciesBroken(), areDepenciesInVulnerableState(), and getSourceQuestionPoolSummaryString().
ilObjTestDynamicQuestionSetConfig::getSourceQuestionPoolSummaryString | ( | ilLanguage | $lng | ) |
ilLanguage | $lng | |
ilTree | $tree |
Definition at line 354 of file class.ilObjTestDynamicQuestionSetConfig.php.
References ilTestQuestionSetConfig\getQuestionPoolPathString(), getSourceQuestionPoolId(), getSourceQuestionPoolNumQuestions(), getSourceQuestionPoolRefIds(), getSourceQuestionPoolTitle(), and ilLanguage\txt().
ilObjTestDynamicQuestionSetConfig::getSourceQuestionPoolTitle | ( | ) |
getter for source question pool title
Definition at line 73 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by getDepenciesBrokenMessage(), getDepenciesInVulnerableStateMessage(), getSourceQuestionPoolSummaryString(), insertDbRecord(), and updateDbRecord().
ilObjTestDynamicQuestionSetConfig::initFromArray | ( | $dataArray | ) |
initialises the current object instance with values from matching properties within the passed array
array | $dataArray |
Definition at line 166 of file class.ilObjTestDynamicQuestionSetConfig.php.
References setAnswerStatusFilterEnabled(), setOrderingTaxonomyId(), setPreviousQuestionsListEnabled(), setSourceQuestionPoolId(), setSourceQuestionPoolTitle(), and setTaxonomyFilterEnabled().
Referenced by loadFromDb().
|
private |
inserts a new record for the question set config for the current test into the database
$testId |
Definition at line 291 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getOrderingTaxonomyId(), getSourceQuestionPoolId(), getSourceQuestionPoolTitle(), isAnswerStatusFilterEnabled(), isPreviousQuestionsListEnabled(), and isTaxonomyFilterEnabled().
Referenced by cloneToDbForTestId(), and saveToDb().
ilObjTestDynamicQuestionSetConfig::isAnswerStatusFilterEnabled | ( | ) |
Definition at line 91 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $answerStatusFilterEnabled.
Referenced by ilTestDynamicQuestionSet\initFilteredQuestionList(), insertDbRecord(), isAnyQuestionFilterEnabled(), and updateDbRecord().
ilObjTestDynamicQuestionSetConfig::isAnyQuestionFilterEnabled | ( | ) |
Definition at line 555 of file class.ilObjTestDynamicQuestionSetConfig.php.
References isAnswerStatusFilterEnabled(), and isTaxonomyFilterEnabled().
ilObjTestDynamicQuestionSetConfig::isPreviousQuestionsListEnabled | ( | ) |
Definition at line 147 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $previousQuestionsListEnabled.
Referenced by insertDbRecord(), and updateDbRecord().
ilObjTestDynamicQuestionSetConfig::isQuestionSetConfigured | ( | ) |
returns the fact wether a useable question set config exists or not
Reimplemented from ilTestQuestionSetConfig.
Definition at line 309 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getSourceQuestionPoolId().
Referenced by doesQuestionSetRelatedDataExist().
ilObjTestDynamicQuestionSetConfig::isResultTaxonomyFilterSupported | ( | ) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 550 of file class.ilObjTestDynamicQuestionSetConfig.php.
ilObjTestDynamicQuestionSetConfig::isTaxonomyFilterEnabled | ( | ) |
isser for taxonomie filter enabled
Definition at line 109 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $taxonomyFilterEnabled.
Referenced by ilTestDynamicQuestionSet\initFilteredQuestionList(), insertDbRecord(), isAnyQuestionFilterEnabled(), and updateDbRecord().
ilObjTestDynamicQuestionSetConfig::isValidRequestOnBrokenQuestionSetDepencies | ( | $nextClass, | |
$cmd | |||
) |
Reimplemented from ilTestQuestionSetConfig.
Definition at line 466 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $cmd.
ilObjTestDynamicQuestionSetConfig::loadFromDb | ( | ) |
loads the question set config for current test from the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 187 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $res, $row, and initFromArray().
Referenced by cloneQuestionSetRelatedData().
ilObjTestDynamicQuestionSetConfig::removeQuestionSetRelatedData | ( | ) |
removes all question set config related data (in this case it's only the config itself)
Reimplemented from ilTestQuestionSetConfig.
Definition at line 328 of file class.ilObjTestDynamicQuestionSetConfig.php.
References deleteFromDb().
ilObjTestDynamicQuestionSetConfig::resetQuestionSetRelatedTestSettings | ( | ) |
resets all test settings that depends on a non changed question set config
Reimplemented from ilTestQuestionSetConfig.
Definition at line 333 of file class.ilObjTestDynamicQuestionSetConfig.php.
ilObjTestDynamicQuestionSetConfig::saveToDb | ( | ) |
saves the question set config for current test to the database
Reimplemented from ilTestQuestionSetConfig.
Definition at line 207 of file class.ilObjTestDynamicQuestionSetConfig.php.
References dbRecordExists(), insertDbRecord(), and updateDbRecord().
ilObjTestDynamicQuestionSetConfig::setAnswerStatusFilterEnabled | ( | $answerStatusFilterEnabled | ) |
boolean | $answerStatusFilterEnabled |
Definition at line 99 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $answerStatusFilterEnabled.
Referenced by initFromArray().
ilObjTestDynamicQuestionSetConfig::setOrderingTaxonomyId | ( | $orderingTaxonomyId | ) |
getter for ordering taxonomy id
integer | $orderingTaxonomyId |
Definition at line 139 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $orderingTaxonomyId.
Referenced by initFromArray().
ilObjTestDynamicQuestionSetConfig::setPreviousQuestionsListEnabled | ( | $previousQuestionsListEnabled | ) |
boolean | $previousQuestionsListEnabled |
Definition at line 155 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $previousQuestionsListEnabled.
Referenced by initFromArray().
ilObjTestDynamicQuestionSetConfig::setSourceQuestionPoolId | ( | $sourceQuestionPoolId | ) |
getter for source question pool id
integer | $sourceQuestionPoolId |
Definition at line 63 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $sourceQuestionPoolId.
Referenced by initFromArray().
ilObjTestDynamicQuestionSetConfig::setSourceQuestionPoolTitle | ( | $sourceQuestionPoolTitle | ) |
getter for source question pool title
string | $sourceQuestionPoolTitle |
Definition at line 83 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by initFromArray().
ilObjTestDynamicQuestionSetConfig::setTaxonomyFilterEnabled | ( | $taxonomyFilterEnabled | ) |
setter for taxonomie filter enabled
boolean | $taxonomyFilterEnabled |
Definition at line 119 of file class.ilObjTestDynamicQuestionSetConfig.php.
References $taxonomyFilterEnabled.
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 268 of file class.ilObjTestDynamicQuestionSetConfig.php.
References getOrderingTaxonomyId(), getSourceQuestionPoolId(), getSourceQuestionPoolTitle(), isAnswerStatusFilterEnabled(), isPreviousQuestionsListEnabled(), and isTaxonomyFilterEnabled().
Referenced by saveToDb().
|
private |
Definition at line 26 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by isAnswerStatusFilterEnabled(), and setAnswerStatusFilterEnabled().
|
private |
Definition at line 41 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by getOrderingTaxonomyId(), and setOrderingTaxonomyId().
|
private |
Definition at line 46 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by isPreviousQuestionsListEnabled(), and setPreviousQuestionsListEnabled().
|
private |
Definition at line 21 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by getSourceQuestionPoolId(), and setSourceQuestionPoolId().
|
private |
Definition at line 511 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by getSourceQuestionPoolRefIds().
|
private |
Definition at line 34 of file class.ilObjTestDynamicQuestionSetConfig.php.
Referenced by isTaxonomyFilterEnabled(), and setTaxonomyFilterEnabled().