4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
74 $dynamicQuestionSetConfig, $filterSelection
78 $dynamicQuestionSetConfig, $this->filteredQuestionList
92 $questionList->load();
112 require_once
'Services/Taxonomy/classes/class.ilObjTaxonomy.php';
120 $questionList->addTaxonomyFilter($taxId, $taxNodes);
125 $questionList->setAvailableTaxonomyIds( array(
132 $questionList->load();
134 return $questionList;
153 $questionsByNode = array();
154 $nodelessQuestions = array();
158 if( isset($qData[
'taxonomies'][$orderingTaxId]) && count($qData[
'taxonomies'][$orderingTaxId]) )
160 foreach($qData[
'taxonomies'][$orderingTaxId] as $nodeId => $itemData)
162 $questionsByNode[ $itemData[
'node_lft'] ][ $itemData[
'order_nr'] ] = $qId;
168 $nodelessQuestions[$qData[
'tstamp'].
'::'.$qId] = $qId;
172 foreach($questionsByNode as $nodeLft => $questions)
174 ksort($questions, SORT_NUMERIC);
175 $questionsByNode[$nodeLft] = array_values($questions);
178 ksort($questionsByNode, SORT_NUMERIC);
179 $sequence = array_values($questionsByNode);
181 ksort($nodelessQuestions);
182 $sequence[] = array_values($nodelessQuestions);
193 $sequence[ $qData[
'tstamp'].
'::'.$qId ] = $qId;
197 $sequence = array_values($sequence);
199 return array($sequence);
211 $questionData = $this->completeQuestionList->getQuestionDataArray();
212 return isset($questionData[$questionId]);
217 $questionData = $this->completeQuestionList->getQuestionDataArray();
218 return $questionData[$questionId];
223 return $this->completeQuestionList->getQuestionDataArray();