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';
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;
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)
353 $tpl->setCurrentBlock(
'item_text');
355 $tpl->parseCurrentBlock();
361 $tpl->setCurrentBlock(
'item_image');
364 $tpl->parseCurrentBlock();
369 $tpl->setCurrentBlock(
'correctness_icon');
372 $tpl->parseCurrentBlock();
375 $tpl->setCurrentBlock(
'item');
376 $tpl->setVariable(
"ITEM_ID", $itemSubFieldId);
377 $tpl->setVariable(
"ITEM_POSTVAR", $itemSubFieldPostVar);
379 $tpl->parseCurrentBlock();
391 if (!isset($elementValues[$elementCounter])) {
395 return $elementValues[$elementCounter][
'ordering_indentation'];
405 if (!isset($elementValues[$elementCounter + 1])) {
409 return $elementValues[$elementCounter + 1][
'ordering_indentation'];
414 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
const OQ_PICTURES
Ordering question constants.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl