4require_once
'Services/Form/classes/class.ilMultipleNestedOrderingElementsInputGUI.php';
60 true => self::CORRECTNESS_ICON_TRUE,
false => self::CORRECTNESS_ICON_FALSE
67 true => self::CORRECTNESS_LNGVAR_TRUE,
false => self::CORRECTNESS_LNGVAR_FALSE
88 require_once
'Modules/TestQuestionPool/classes/forms/class.ilAssOrderingDefaultElementFallback.php';
92 parent::__construct(
'', $postVar);
116 require_once
'Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElementList.php';
127 $elementList->completeContentsFromElementList(
128 $question->getOrderingElementList()
138 return parent::getInstanceId();
246 return $this->correctnessIcons[(bool)$correctness];
255 $this->correctnessIcons[(bool)$correctness] = $iconFilename;
264 return $this->correctnessLngVars[(bool)$correctness];
273 $this->correctnessLngVars[(bool)$correctness] = $langVar;
283 return $lng->txt( $this->correctnessLngVars[(
bool)$correctness] );
316 return new ilTemplate(
'tpl.prop_ass_nested_order_elem.html',
true,
true,
'Modules/TestQuestionPool');
345 protected function getItemHtml($element, $identifier, $position, $itemSubFieldPostVar, $itemSubFieldId)
354 $tpl->setCurrentBlock(
'item_text');
356 $tpl->parseCurrentBlock();
362 $tpl->setCurrentBlock(
'item_image');
365 $tpl->parseCurrentBlock();
371 $tpl->setCurrentBlock(
'correctness_icon');
374 $tpl->parseCurrentBlock();
377 $tpl->setCurrentBlock(
'item');
378 $tpl->setVariable(
"ITEM_ID", $itemSubFieldId);
379 $tpl->setVariable(
"ITEM_POSTVAR", $itemSubFieldPostVar);
381 $tpl->parseCurrentBlock();
393 if( !isset($elementValues[$elementCounter]) )
398 return $elementValues[$elementCounter][
'ordering_indentation'];
408 if( !isset($elementValues[$elementCounter + 1]) )
413 return $elementValues[$elementCounter + 1][
'ordering_indentation'];
418 if( !is_array(
$data) )
An exception for terminatinating execution or to throw for unit testing.
Abstract basic class which is to be extended by the concrete assessment question type classes.
getId()
Gets the id of the assQuestion object.
getRandomIdentifierIndexedElements()
static buildInstance($questionId, $orderingElements=array())
special template class to simplify handling of ITX/PEAR
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
const OQ_PICTURES
Ordering question constants.