ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMatchingQuestionAnswerFreqStatTableGUI.php
Go to the documentation of this file.
1<?php
2
28{
29 public function __construct(
30 ilTestCorrectionsGUI $a_parent_obj,
31 string $a_parent_cmd,
32 assMatchingQuestion $question
33 ) {
34 parent::__construct($a_parent_obj, $a_parent_cmd, $question);
35 $this->setDefaultOrderField('term');
36 }
37
38 public function initColumns(): void
39 {
40 $this->addColumn('Term', '');
41 $this->addColumn('Definition', '');
42 $this->addColumn('Frequency', '');
43 }
44
45 public function fillRow(array $a_set): void
46 {
47 $this->tpl->setCurrentBlock('answer');
48 $this->tpl->setVariable('ANSWER', $a_set['term']);
49 $this->tpl->parseCurrentBlock();
50
51 $this->tpl->setCurrentBlock('answer');
52 $this->tpl->setVariable('ANSWER', $a_set['definition']);
53 $this->tpl->parseCurrentBlock();
54
55 $this->tpl->setCurrentBlock('frequency');
56 $this->tpl->setVariable('FREQUENCY', $a_set['frequency']);
57 $this->tpl->parseCurrentBlock();
58 }
59}
Class for matching questions.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilTestCorrectionsGUI $a_parent_obj, string $a_parent_cmd, assMatchingQuestion $question)
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)
setDefaultOrderField(string $a_defaultorderfield)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc