4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
35 $this->
setId(
'tst_pass_details_overview');
36 $this->
setPrefix(
'tst_pass_details_overview');
59 $this->
setTitle($this->lng->txt(
'tst_pass_details_overview_table_title'));
61 $this->
setRowTemplate(
'tpl.il_as_tst_pass_details_overview_qst_row.html',
'Modules/Test');
70 $this->lng->txt(
'tst_pass_details_overview_table_title'), $this->
getPass() + 1
73 $this->
addColumn($this->lng->txt(
"tst_question_no"),
'',
'');
74 $this->
addColumn($this->lng->txt(
"question_id"),
'',
'');
75 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'',
'');
76 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'',
'');
77 $this->
addColumn($this->lng->txt(
"tst_reached_points"),
'',
'');
81 $this->
addColumn($this->lng->txt(
"tst_question_hints_requested_hint_count_header"),
'',
'');
84 $this->
addColumn($this->lng->txt(
"tst_percent_solved"),
'',
'');
88 $this->
addColumn($this->lng->txt(
"solution_hint"),
'',
'');
104 if( count($this->parent_obj->object->getResultFilterTaxIds()) )
106 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
108 foreach($this->parent_obj->object->getResultFilterTaxIds() as $taxId)
110 $postvar =
"tax_$taxId";
114 $inp->readFromSession();
115 $this->filter[$postvar] = $inp->getValue();
135 $this->is_pdf_generation_request = $is_print_request;
140 $this->ctrl->setParameter($this->parent_obj,
'evaluation', $row[
'qid']);
146 if( strlen($questionTitleLink) )
148 $this->tpl->setVariable(
'URL_QUESTION_TITLE', $questionTitleLink);
150 $this->tpl->setCurrentBlock(
'title_link_end_tag');
151 $this->tpl->touchBlock(
'title_link_end_tag');
152 $this->tpl->parseCurrentBlock();
158 $this->tpl->setVariable(
'VALUE_HINT_COUNT', (
int)$row[
'requested_hints']);
163 $this->tpl->setVariable(
'SOLUTION_HINT', $row[
'solution']);
168 $this->tpl->setVariable(
'ACTIONS_MENU', $this->
getActionList($row[
'qid']));
171 $this->tpl->setVariable(
'VALUE_QUESTION_TITLE', $row[
'title']);
172 $this->tpl->setVariable(
'VALUE_QUESTION_ID', $row[
'qid']);
173 $this->tpl->setVariable(
'VALUE_QUESTION_COUNTER', $row[
'nr']);
174 $this->tpl->setVariable(
'VALUE_MAX_POINTS', $row[
'max']);
175 $this->tpl->setVariable(
'VALUE_REACHED_POINTS', $row[
'reached']);
176 $this->tpl->setVariable(
'VALUE_PERCENT_SOLVED', $row[
'percent']);
178 $this->tpl->setVariable(
'ROW_ID', $this->
getRowId($row[
'qid']));
183 return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
239 $aslGUI->setListTitle($this->lng->txt(
'tst_answer_details'));
240 $aslGUI->setId(
"act{$this->getActiveId()}_qst{$questionId}");
245 $this->lng->txt(
'tst_list_answer_details'),
'tst_pass_details', $this->
getAnswerListAnchor($questionId)
252 $this->lng->txt(
'tst_single_answer_details'),
'tst_pass_details',
257 return $aslGUI->getHTML();
282 return "#detailed_answer_block_act_{$this->getActiveId()}_qst_{$questionId}";