24 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
45 $this->
addColumn($lng->txt(
"question_id"),
"id",
"10%");
46 $this->
addColumn($lng->txt(
"question_title"),
"title",
"35%");
47 $this->
addColumn($lng->txt(
"number_of_answers"),
"noa",
"10%");
50 $this->
addColumn($lng->txt(
"output"),
"",
"10%");
51 $this->
addColumn($lng->txt(
"question_time"),
"time",
"10%");
52 $this->
addColumn($lng->txt(
"question_meantime"),
"meantime",
"10%");
53 $this->
addColumn($lng->txt(
"file_uploads"),
"",
"15%");
57 $this->
addColumn($lng->txt(
"question_time"),
"time",
"10%");
58 $this->
addColumn($lng->txt(
"question_meantime"),
"meantime",
"10%");
59 $this->
addColumn($lng->txt(
"file_uploads"),
"",
"25%");
62 $this->
setRowTemplate(
"tpl.table_results_by_question_row.html",
"Modules/Test");
94 $this->tpl->setCurrentBlock(
'pdf');
95 $this->tpl->setVariable(
"PDF_EXPORT", $a_set[
'output']);
96 $this->tpl->parseCurrentBlock();
98 $this->tpl->setVariable(
"QUESTION_ID", $a_set[
'id']);
99 $this->tpl->setVariable(
"QUESTION_TITLE", $a_set[
'title']);
100 $this->tpl->setVariable(
"NUMBER_OF_ANSWERS", $a_set[
'noa']);
101 $this->tpl->setVariable(
"FILE_UPLOADS", $a_set[
'download']);
102 $this->tpl->setVariable(
"QUESTION_TIME", sprintf(
"%d min %d s", floor($a_set[
'time']/60), $a_set[
'time'] % 60));
103 $this->tpl->setVariable(
"QUESTION_MEANTIME", sprintf(
"%.1f s", $a_set[
'meantime']));