4 require_once
'Modules/Test/classes/class.ilTestQuestionSetConfig.php';
70 return $this->sourceQuestionPoolTitle;
80 $this->sourceQuestionPoolTitle = $sourceQuestionPoolTitle;
167 $res = $this->db->queryF(
168 "SELECT * FROM tst_dyn_quest_set_cfg WHERE test_fi = %s",
169 array(
'integer'),
array($this->testOBJ->getTestId())
172 while(
$row = $this->db->fetchAssoc(
$res) )
214 $aff = $this->db->manipulateF(
215 "DELETE FROM tst_dyn_quest_set_cfg WHERE test_fi = %s",
216 array(
'integer'),
array($this->testOBJ->getTestId())
230 $res = $this->db->queryF(
231 "SELECT COUNT(*) cnt FROM tst_dyn_quest_set_cfg WHERE test_fi = %s",
237 return (
bool)
$row[
'cnt'];
248 $this->db->update(
'tst_dyn_quest_set_cfg',
257 'test_fi' =>
array(
'integer', $testId)
270 $this->db->insert(
'tst_dyn_quest_set_cfg',
array(
271 'test_fi' =>
array(
'integer', $testId),
334 if( !count($poolRefs) )
336 $sourceQuestionPoolSummaryString = sprintf(
337 $lng->
txt(
'tst_dyn_quest_set_src_qpl_summary_string_deleted'),
341 return $sourceQuestionPoolSummaryString;
344 foreach($poolRefs as $refId)
346 if( !$this->tree->isDeleted($refId) )
348 $sourceQuestionPoolSummaryString = sprintf(
349 $lng->
txt(
'tst_dynamic_question_set_source_questionpool_summary_string'),
355 return $sourceQuestionPoolSummaryString;
359 $sourceQuestionPoolSummaryString = sprintf(
360 $lng->
txt(
'tst_dyn_quest_set_src_qpl_summary_string_trashed'),
365 return $sourceQuestionPoolSummaryString;
374 SELECT COUNT(*) num from qpl_questions 375 WHERE obj_fi = %s AND original_id IS NULL 378 $res = $this->db->queryF(
396 foreach( $poolRefs as $refId )
398 if( !$this->tree->isDeleted($refId) )
425 if( count($poolRefs) )
446 if( !$this->testOBJ->participantDataExist() )
453 case 'ilobjtestdynamicquestionsetconfiggui':
455 case 'ilobjectmetadatagui':
456 case 'ilpermissiongui':
464 'infoScreen',
'participants',
'npSetFilter',
'npResetFilter',
465 'deleteAllUserResults',
'confirmDeleteAllUserResults',
466 'deleteSingleUserResults',
'confirmDeleteSelectedUserData',
'cancelDeleteSelectedUserData' 469 if( in_array(
$cmd, $cmds) )
483 'settings',
'manscoring',
'scoringadjust',
'statistics',
'history',
'export' 491 if( $this->sourceQuestionPoolRefIds === null )
507 FROM tst_dyn_quest_set_cfg 509 ON tst_tests.test_id = tst_dyn_quest_set_cfg.test_fi 510 WHERE source_qpl_fi = %s 515 require_once
'Modules/Test/classes/class.ilDynamicTestQuestionChangeListener.php';
520 $questionChangeListener->addTestObjId(
$row[
'obj_fi'] );
523 return $questionChangeListener;
552 return "<a href=\"$href\" alt=\"$title\">$title</a>";
saveToDb()
saves the question set config for current test to the database
isAnyQuestionFilterEnabled()
isValidRequestOnBrokenQuestionSetDepencies($nextClass, $cmd)
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
getHiddenTabsOnBrokenDepencies()
getTestId()
Gets the database id of the additional test data.
cloneQuestionSetRelatedData(ilObjTest $cloneTestOBJ)
removes all question set config related data for cloned/copied test
static getPoolQuestionChangeListener(ilDBInterface $db, $poolObjId)
isTaxonomyFilterEnabled()
isser for taxonomie filter enabled
setTaxonomyFilterEnabled($taxonomyFilterEnabled)
setter for taxonomie filter enabled
getQuestionPoolPathString($poolId)
setOrderingTaxonomyId($orderingTaxonomyId)
getter for ordering taxonomy id
static _getAllReferences($a_id)
get all reference ids of object
deleteFromDb()
deletes the question set config for current test from the database
setAnswerStatusFilterEnabled($answerStatusFilterEnabled)
getDepenciesInVulnerableStateMessage(ilLanguage $lng)
isQuestionSetConfigured()
returns the fact wether a useable question set config exists or not
getSourceQuestionPoolTitle()
getter for source question pool title
$sourceQuestionPoolRefIds
$answerStatusFilterEnabled
setSourceQuestionPoolId($sourceQuestionPoolId)
getter for source question pool id
getSourceQuestionPoolRefIds()
queryF($query, $types, $values)
Create styles array
The data for the language used.
updateDbRecord($testId)
updates the record in the database that corresponds to the question set config for the current test ...
isResultTaxonomyFilterSupported()
isAnswerStatusFilterEnabled()
getSourceQuestionPoolNumQuestions()
resetQuestionSetRelatedTestSettings()
fetchAssoc($query_result)
insertDbRecord($testId)
inserts a new record for the question set config for the current test into the database ...
areDepenciesInVulnerableState()
txt($a_topic, $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
getOrderingTaxonomyId()
setter for ordering taxonomy id
getSourceQuestionPoolLink()
getSourceQuestionPoolSummaryString(ilLanguage $lng)
setSourceQuestionPoolTitle($sourceQuestionPoolTitle)
getter for source question pool title
getSourceQuestionPoolId()
getter for source question pool id
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
getDepenciesBrokenMessage(ilLanguage $lng)
dbRecordExists($testId)
checks wether a question set config for current test exists in the database
removeQuestionSetRelatedData()
removes all question set config related data (in this case it's only the config itself) ...
doesQuestionSetRelatedDataExist()
returns the fact wether a useable question set config exists or not
cloneToDbForTestId($testId)
saves the question set config for test with given id to the database