31 private \ILIAS\DI\UIServices
$ui;
38 $this->
ui = $DIC->ui();
52 $inp->setValues(current($this->values[
'answers_all']));
53 $inp->setDisabled(
true);
55 $this->answer_options_modal = $this->
ui->factory()->modal()->lightbox(
56 $this->
ui->factory()->modal()->lightboxTextPage(
58 $this->lng->txt(
'answer_options')
62 $tpl =
new ilTemplate(
'tpl.prop_longmenu_corrections_input.html',
true,
true,
'components/ILIAS/TestQuestionPool');
65 $tpl->setVariable(
'NUM_ANSWERS', $this->values[
'answers_all_count']);
68 $this->
ui->renderer()->render(
69 $this->ui->factory()->button()->standard(
70 $this->lng->txt(
'show'),
71 $this->answer_options_modal->getShowSignal()
75 $tpl->setVariable(
'TXT_ANSWERS', $this->
lng->txt(
'answer_options'));
76 $tpl->setVariable(
'TXT_CORRECT_ANSWERS', $this->
lng->txt(
'correct_answers') .
':');
78 $tpl->setVariable(
'POSTVAR', $this->
getPostVar());
87 return $this->answer_options_modal ===
null
89 : $this->
ui->renderer()->render($this->answer_options_modal);
95 $tagInput->setTypeAheadMinLength(1);
97 $tagInput->setOptions($this->values[
'answers_correct']);
98 $tagInput->setTypeAheadList($this->values[
'answers_all'][0]);
setVariable($variable, $value='')
Sets a variable value.
special template class to simplify handling of ITX/PEAR
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
render(string $a_mode="")
This class represents a text wizard property in a property form.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc