ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMatchingQuestionAnswerFreqStatTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 require_once 'Modules/TestQuestionPool/classes/tables/class.ilAnswerFrequencyStatisticTableGUI.php';
6 
16 {
20  protected $question;
21 
22  public function __construct($a_parent_obj, $a_parent_cmd = "", $question)
23  {
24  parent::__construct($a_parent_obj, $a_parent_cmd, $question);
25  $this->setDefaultOrderField('term');
26  }
27 
28  public function initColumns()
29  {
30  $this->addColumn('Term', '');
31  $this->addColumn('Definition', '');
32  $this->addColumn('Frequency', '');
33  }
34 
35  public function fillRow($data)
36  {
37  $this->tpl->setCurrentBlock('answer');
38  $this->tpl->setVariable('ANSWER', $data['term']);
39  $this->tpl->parseCurrentBlock();
40 
41  $this->tpl->setCurrentBlock('answer');
42  $this->tpl->setVariable('ANSWER', $data['definition']);
43  $this->tpl->parseCurrentBlock();
44 
45  $this->tpl->setCurrentBlock('frequency');
46  $this->tpl->setVariable('FREQUENCY', $data['frequency']);
47  $this->tpl->parseCurrentBlock();
48  }
49 }
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.