46         $this->ui_factory = $DIC[
'ui.factory'];
    47         $this->ui_renderer = $DIC[
'ui.renderer'];
    49         $this->
ctrl = $DIC[
'ilCtrl'];
    51         $this->
setId(
'tstAnswerStatistic');
    55         $this->
setRowTemplate(
'tpl.tst_corrections_answer_row.html', 
'components/ILIAS/Test');
    80         $this->additionalHtml = $additional_html;
    85         $this->additionalHtml .= $additional_html;
   100         $this->
addColumn($this->
language->txt(
'tst_corr_answ_stat_tbl_header_answer'), 
'');
   101         $this->
addColumn($this->
language->txt(
'tst_corr_answ_stat_tbl_header_frequency'), 
'');
   103         foreach ($this->
getData() as $row) {
   104             if (isset($row[
'addable'])) {
   114         $this->tpl->setCurrentBlock(
'answer');
   115         $this->tpl->setVariable(
'ANSWER', htmlspecialchars((
string) $a_set[
'answer'], ENT_QUOTES));
   116         $this->tpl->parseCurrentBlock();
   118         $this->tpl->setCurrentBlock(
'frequency');
   119         $this->tpl->setVariable(
'FREQUENCY', $a_set[
'frequency']);
   120         $this->tpl->parseCurrentBlock();
   123             if (isset($a_set[
'addable'])) {
   124                 $this->tpl->setCurrentBlock(
'actions');
   126                 $this->tpl->parseCurrentBlock();
   128                 $this->tpl->setCurrentBlock(
'actions');
   129                 $this->tpl->touchBlock(
'actions');
   130                 $this->tpl->parseCurrentBlock();
   137         $data[
'question_id'] = $this->question->getId();
   145         ))->buildAddAnswerModal($this->question->getTitleForHTMLOutput(), 
$data);
   147         $show_modal_button = $this->ui_factory->button()->standard(
   148             $this->
language->txt(
'tst_corr_add_as_answer_btn'),
   149             $modal->getShowSignal()
   154         return $this->ui_renderer->render($show_modal_button);
 setActionsColumnEnabled(bool $actionsColumnEnabled)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
RefineryFactory $refinery
 
setQuestionIndex(int $questionIndex)
 
buildAddAnswerAction($data)
 
setDefaultOrderField(string $a_defaultorderfield)
 
addAdditionalHtml(string $additional_html)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
__construct(Container $dic, ilPlugin $plugin)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
__construct(?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
 
language()
 description: > Example for rendring a language glyph. 
 
setAdditionalHtml(string $additional_html)
 
bool $actionsColumnEnabled
 
setPrefix(string $a_prefix)