ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMatchingQuestionAnswerFreqStatTableGUI.php
Go to the documentation of this file.
1 <?php
2 
28 {
29  public function __construct($a_parent_obj, $a_parent_cmd = "", $question = "")
30  {
31  parent::__construct($a_parent_obj, $a_parent_cmd, $question);
32  $this->setDefaultOrderField('term');
33  }
34 
35  public function initColumns(): void
36  {
37  $this->addColumn('Term', '');
38  $this->addColumn('Definition', '');
39  $this->addColumn('Frequency', '');
40  }
41 
42  public function fillRow(array $a_set): void
43  {
44  $this->tpl->setCurrentBlock('answer');
45  $this->tpl->setVariable('ANSWER', $a_set['term']);
46  $this->tpl->parseCurrentBlock();
47 
48  $this->tpl->setCurrentBlock('answer');
49  $this->tpl->setVariable('ANSWER', $a_set['definition']);
50  $this->tpl->parseCurrentBlock();
51 
52  $this->tpl->setCurrentBlock('frequency');
53  $this->tpl->setVariable('FREQUENCY', $a_set['frequency']);
54  $this->tpl->parseCurrentBlock();
55  }
56 }
__construct($a_parent_obj, $a_parent_cmd="", $question="")
setDefaultOrderField(string $a_defaultorderfield)
__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)