4 require_once
'Services/Form/classes/class.ilMultipleNestedOrderingElementsInputGUI.php';
67 require_once
'Modules/TestQuestionPool/classes/forms/class.ilAssOrderingDefaultElementFallback.php';
95 require_once
'Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElementList.php';
106 $elementList->completeContentsFromElementList(
107 $question->getOrderingElementList()
116 return parent::getInstanceId();
224 if((
bool) $correctness){
238 if ((
bool) $correctness){
239 return $lng->txt(
'answer_is_right');
241 return $lng->txt(
'answer_is_wrong');
275 return new ilTemplate(
'tpl.prop_ass_nested_order_elem.html',
true,
true,
'Modules/TestQuestionPool');
304 protected function getItemHtml($element, $identifier, $position, $itemSubFieldPostVar, $itemSubFieldId)
312 $tpl->setCurrentBlock(
'item_text');
314 $tpl->parseCurrentBlock();
320 $tpl->setCurrentBlock(
'item_image');
323 $tpl->parseCurrentBlock();
328 $tpl->setCurrentBlock(
'correctness_icon');
332 $tpl->parseCurrentBlock();
335 $tpl->setCurrentBlock(
'item');
336 $tpl->setVariable(
"ITEM_ID", $itemSubFieldId);
337 $tpl->setVariable(
"ITEM_POSTVAR", $itemSubFieldPostVar);
339 $tpl->parseCurrentBlock();
351 if (!isset($elementValues[$elementCounter])) {
355 return $elementValues[$elementCounter][
'ordering_indentation'];
365 if (!isset($elementValues[$elementCounter + 1])) {
369 return $elementValues[$elementCounter + 1][
'ordering_indentation'];
374 if (!is_array(
$data)) {
getId()
Gets the id of the assQuestion object.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
Abstract basic class which is to be extended by the concrete assessment question type classes...
static buildInstance(int $question_id, array $elements=[])
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getRandomIdentifierIndexedElements()
__construct(Container $dic, ilPlugin $plugin)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl