29 private \ILIAS\DI\UIServices
$ui;
34 $this->
ui = $DIC->ui();
48 $inp->setValues(current($this->values[
'answers_all']));
49 $inp->setDisabled(
true);
52 $page = $this->
ui->factory()->modal()->lightboxTextPage(
$message, $this->
lng->txt(
'answer_options'));
53 $modal = $this->
ui->factory()->modal()->lightbox($page);
54 $button = $this->
ui->factory()->button()->standard($this->
lng->txt(
'show'), $modal->getShowSignal());
56 $tpl =
new ilTemplate(
'tst.longmenu_corrections_input.html',
true,
true,
'components/ILIAS/TestQuestionPool');
58 $tpl->setVariable(
'ANSWERS_MODAL', $this->
ui->renderer()->render($modal));
60 $tpl->setVariable(
'NUM_ANSWERS', $this->values[
'answers_all_count']);
61 $tpl->setVariable(
'BTN_SHOW', $this->
ui->renderer()->render($button));
62 $tpl->setVariable(
'TXT_ANSWERS', $this->
lng->txt(
'answer_options'));
63 $tpl->setVariable(
'TXT_CORRECT_ANSWERS', $this->
lng->txt(
'correct_answers') .
':');
65 $tpl->setVariable(
'POSTVAR', $this->
getPostVar());
75 $tagInput->setTypeAheadMinLength(1);
77 $tagInput->setOptions($this->values[
'answers_correct']);
78 $tagInput->setTypeAheadList($this->values[
'answers_all'][0]);
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setVariable($variable, $value='')
Sets a variable value.
render(string $a_mode="")
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)
This class represents a text wizard property in a property form.