53 $dynamicQuestionSetConfig,
58 $dynamicQuestionSetConfig,
63 $dynamicQuestionSetConfig,
68 $dynamicQuestionSetConfig,
69 $this->filteredQuestionList
82 $questionList->load();
99 require_once
'Services/Taxonomy/classes/class.ilObjTaxonomy.php';
106 $questionList->addTaxonomyFilter(
109 $this->testOBJ->getId(),
110 $this->testOBJ->getType()
114 $questionList->setAvailableTaxonomyIds(array(
121 $questionList->load();
123 return $questionList;
139 require_once
'Services/Taxonomy/classes/class.ilObjTaxonomy.php';
146 $questionList->addTaxonomyFilter(
149 $this->testOBJ->getId(),
150 $this->testOBJ->getType()
155 $questionList->load();
157 return $questionList;
176 require_once
'Services/Taxonomy/classes/class.ilObjTaxonomy.php';
179 require_once
'Modules/Test/classes/class.ilTestTaxonomyTree.php';
181 $tree->initOrderedTreeIndex($tax);
183 $questionsByNode = array();
184 $nodelessQuestions = array();
187 if (isset($qData[
'taxonomies'][$orderingTaxId]) && count($qData[
'taxonomies'][$orderingTaxId])) {
188 foreach ($qData[
'taxonomies'][$orderingTaxId] as $nodeId => $itemData) {
189 $nodeOrderingPath = $tree->getNodeOrderingPathString($itemData[
'node_id']);
191 if (!isset($questionsByNode[ $nodeOrderingPath ])) {
192 $questionsByNode[ $nodeOrderingPath ] = array();
196 $questionsByNode[ $nodeOrderingPath ][$itemData[
'order_nr']] = $qId;
198 $questionsByNode[ $nodeOrderingPath ][$qData[
'title'] .
'::' . $qId] = $qId;
202 $nodelessQuestions[$qData[
'tstamp'] .
'::' . $qId] = $qId;
206 foreach ($questionsByNode as
$path => $questions) {
208 ksort($questions, SORT_NUMERIC);
210 ksort($questions, SORT_STRING);
213 $questionsByNode[
$path] = array_values($questions);
216 ksort($questionsByNode, SORT_STRING);
217 $sequence = array_values($questionsByNode);
219 ksort($nodelessQuestions);
220 $sequence[] = array_values($nodelessQuestions);
230 $sequence[ $qData[
'tstamp'] .
'::' . $qId ] = $qId;
234 $sequence = array_values($sequence);
236 return array($sequence);
248 $questionData = $this->completeQuestionList->getQuestionDataArray();
249 return isset($questionData[$questionId]);
254 $questionData = $this->completeQuestionList->getQuestionDataArray();
255 return $questionData[$questionId];
260 return $this->completeQuestionList->getQuestionDataArray();
297 $questionList->setParentObjId($sourceQuestionPoolId);
298 $questionList->setAnswerStatusActiveId($answerStatusActiveId);
299 return $questionList;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilDBInterface $db, ilLanguage $lng, Refinery $refinery, ilComponentRepository $component_repository, ilObjTest $testOBJ)
array $actualQuestionSequence
Readable part of repository interface to ilComponentDataDB.
getCompleteQuestionList()
initFilteredQuestionList(ilObjTestDynamicQuestionSetConfig $dynamicQuestionSetConfig, ilTestDynamicQuestionSetFilterSelection $filterSelection)
getQuestionSequenceStructuredByUpdateDate(ilAssQuestionList $questionList)
ilAssQuestionList $completeQuestionList
isTaxonomyFilterEnabled()
isser for taxonomie filter enabled
static getUsageOfObject(int $a_obj_id, bool $a_include_titles=false)
getAnswerStatusSelection()
getAnswerStatusActiveId()
initActualQuestionSequence(ilObjTestDynamicQuestionSetConfig $dynamicQuestionSetConfig, ilAssQuestionList $questionList)
initSelectionQuestionList(ilObjTestDynamicQuestionSetConfig $dynamicQuestionSetConfig, ilTestDynamicQuestionSetFilterSelection $filterSelection)
getFilteredQuestionList()
getQuestionSequenceStructuredByTaxonomy(ilAssQuestionList $questionList, $orderingTaxId)
questionExists($questionId)
ilAssQuestionList $filteredQuestionList
isAnswerStatusFilterEnabled()
buildQuestionList($sourceQuestionPoolId, $answerStatusActiveId)
getActualQuestionSequence()
getSelectionQuestionList()
ilAssQuestionList $selectionQuestionList
getQuestionData($questionId)
getOrderingTaxonomyId()
setter for ordering taxonomy id
ilComponentRepository $component_repository
getSourceQuestionPoolId()
getter for source question pool id
initCompleteQuestionList(ilObjTestDynamicQuestionSetConfig $dynamicQuestionSetConfig, $answerStatusActiveId)
load(ilObjTestDynamicQuestionSetConfig $dynamicQuestionSetConfig, ilTestDynamicQuestionSetFilterSelection $filterSelection)