5require_once
'Modules/TestQuestionPool/classes/tables/class.ilAnswerFrequencyStatisticTableGUI.php';
26 return $this->question->getTrueOptionLabelTranslation(
28 $this->question->getOptionLabel()
36 return $this->question->getFalseOptionLabelTranslation(
38 $this->question->getOptionLabel()
45 $lng = $this->DIC->language();
46 $this->
addColumn(
$lng->txt(
'tst_corr_answ_stat_tbl_header_answer'),
'');
47 $this->
addColumn(
$lng->txt(
'tst_corr_answ_stat_tbl_header_frequency') .
': ' . $this->getTrueOptionLabel(),
'');
48 $this->
addColumn(
$lng->txt(
'tst_corr_answ_stat_tbl_header_frequency') .
': ' . $this->getFalseOptionLabel(),
'');
50 foreach ($this->
getData() as $row) {
51 if (isset($row[
'addable'])) {
61 $this->tpl->setCurrentBlock(
'answer');
63 $this->tpl->parseCurrentBlock();
65 $this->tpl->setCurrentBlock(
'frequency');
66 $this->tpl->setVariable(
'FREQUENCY',
$data[
'frequency_true']);
67 $this->tpl->parseCurrentBlock();
69 $this->tpl->setCurrentBlock(
'frequency');
70 $this->tpl->setVariable(
'FREQUENCY',
$data[
'frequency_false']);
71 $this->tpl->parseCurrentBlock();
An exception for terminatinating execution or to throw for unit testing.
setActionsColumnEnabled(bool $actionsColumnEnabled)
fillRow($data)
Standard Version of Fill Row.
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.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public