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()
137 return parent::getInstanceId();
245 return $this->correctnessIcons[(bool) $correctness];
254 $this->correctnessIcons[(bool) $correctness] = $iconFilename;
263 return $this->correctnessLngVars[(bool) $correctness];
272 $this->correctnessLngVars[(bool) $correctness] = $langVar;
282 return $lng->txt($this->correctnessLngVars[(
bool) $correctness]);
315 return new ilTemplate(
'tpl.prop_ass_nested_order_elem.html',
true,
true,
'Modules/TestQuestionPool');
344 protected function getItemHtml($element, $identifier, $position, $itemSubFieldPostVar, $itemSubFieldId)
352 $tpl->setCurrentBlock(
'item_text');
354 $tpl->parseCurrentBlock();
360 $tpl->setCurrentBlock(
'item_image');
363 $tpl->parseCurrentBlock();
368 $tpl->setCurrentBlock(
'correctness_icon');
371 $tpl->parseCurrentBlock();
374 $tpl->setCurrentBlock(
'item');
375 $tpl->setVariable(
"ITEM_ID", $itemSubFieldId);
376 $tpl->setVariable(
"ITEM_POSTVAR", $itemSubFieldPostVar);
378 $tpl->parseCurrentBlock();
390 if (!isset($elementValues[$elementCounter])) {
394 return $elementValues[$elementCounter][
'ordering_indentation'];
404 if (!isset($elementValues[$elementCounter + 1])) {
408 return $elementValues[$elementCounter + 1][
'ordering_indentation'];
413 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.