22 $tpl =
new ilTemplate(
'tst.longmenu_corrections_input.html',
true,
true,
'Modules/TestQuestionPool');
28 $tpl->setVariable(
'NUM_ANSWERS', $this->values[
'answers_all_count']);
30 $tpl->setVariable(
'TXT_ANSWERS', $this->lng->txt(
'answer_options'));
31 $tpl->setVariable(
'TXT_SHOW', $this->lng->txt(
'show'));
32 $tpl->setVariable(
'TXT_CORRECT_ANSWERS', $this->lng->txt(
'correct_answers'));
36 $a_tpl->setCurrentBlock(
"prop_generic");
37 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
38 $a_tpl->parseCurrentBlock();
44 $closeButton->setCaption(
'close');
45 $closeButton->setOnClick(
"$('#modal_{$this->getPostVar()}').modal('hide');");
49 $modal->setHeading($this->lng->txt(
'answer_options'));
50 $modal->addButton($closeButton);
53 $inp->setValues(current($this->values[
'answers_all']));
54 $inp->setDisabled(
true);
56 $modal->setBody($inp->render());
64 $tagInput->setTypeAhead(
true);
65 $tagInput->setTypeAheadMinLength(1);
67 $tagInput->setOptions($this->values[
'answers_correct']);
68 $tagInput->setTypeAheadList($this->values[
'answers_all']);
special template class to simplify handling of ITX/PEAR
static getInstance()
Get instance.
This class represents a text wizard property in a property form.