4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
32 'ilTestEvaluationGUI' => 1,
33 'ilTestServiceGUI' => 2
39 if( isset($this->tableIdsByParentClasses[get_class($parent)]) )
41 $tableId = $this->tableIdsByParentClasses[get_class($parent)];
46 $this->
setId(
'tst_pdo_'.$tableId);
52 parent::__construct($parent,
$cmd);
70 $this->
setTitle($this->lng->txt(
'tst_pass_details_overview_table_title'));
72 $this->
setRowTemplate(
'tpl.il_as_tst_pass_details_overview_qst_row.html',
'Modules/Test');
81 $this->lng->txt(
'tst_pass_details_overview_table_title'), $this->
getPass() + 1
84 $this->
addColumn($this->lng->txt(
"tst_question_no"),
'',
'');
85 $this->
addColumn($this->lng->txt(
"question_id"),
'',
'');
86 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'',
'');
87 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'',
'');
88 $this->
addColumn($this->lng->txt(
"tst_reached_points"),
'',
'');
92 $this->
addColumn($this->lng->txt(
"tst_question_hints_requested_hint_count_header"),
'',
'');
95 $this->
addColumn($this->lng->txt(
"tst_percent_solved"),
'',
'');
99 $this->
addColumn($this->lng->txt(
"solution_hint"),
'',
'');
115 if( count($this->parent_obj->object->getResultFilterTaxIds()) )
117 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
119 foreach($this->parent_obj->object->getResultFilterTaxIds() as $taxId)
121 $postvar =
"tax_$taxId";
125 $inp->readFromSession();
126 $this->filter[$postvar] = $inp->getValue();
146 $this->is_pdf_generation_request = $is_print_request;
151 $this->ctrl->setParameter($this->parent_obj,
'evaluation', $row[
'qid']);
157 if( strlen($questionTitleLink) )
159 $this->tpl->setVariable(
'URL_QUESTION_TITLE', $questionTitleLink);
161 $this->tpl->setCurrentBlock(
'title_link_end_tag');
162 $this->tpl->touchBlock(
'title_link_end_tag');
163 $this->tpl->parseCurrentBlock();
169 $this->tpl->setVariable(
'VALUE_HINT_COUNT', (
int)$row[
'requested_hints']);
174 $this->tpl->setVariable(
'SOLUTION_HINT', $row[
'solution']);
179 $this->tpl->setVariable(
'ACTIONS_MENU', $this->
getActionList($row[
'qid']));
182 $this->tpl->setVariable(
'VALUE_QUESTION_TITLE', $row[
'title']);
183 $this->tpl->setVariable(
'VALUE_QUESTION_ID', $row[
'qid']);
184 $this->tpl->setVariable(
'VALUE_QUESTION_COUNTER', $row[
'nr']);
185 $this->tpl->setVariable(
'VALUE_MAX_POINTS', $row[
'max']);
186 $this->tpl->setVariable(
'VALUE_REACHED_POINTS', $row[
'reached']);
187 $this->tpl->setVariable(
'VALUE_PERCENT_SOLVED', $row[
'percent']);
189 $this->tpl->setVariable(
'ROW_ID', $this->
getRowId($row[
'qid']));
194 return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
250 $aslGUI->setListTitle($this->lng->txt(
'tst_answer_details'));
251 $aslGUI->setId(
"act{$this->getActiveId()}_qst{$questionId}");
256 $this->lng->txt(
'tst_list_answer_details'),
'tst_pass_details', $this->
getAnswerListAnchor($questionId)
263 $this->lng->txt(
'tst_single_answer_details'),
'tst_pass_details',
268 return $aslGUI->getHTML();
293 return "#detailed_answer_block_act_{$this->getActiveId()}_qst_{$questionId}";
isQuestionTitleLinkPossible()
setShowHintCount($showHintCount)
setFormName($a_formname)
Set Form name.
getQuestionTitleLink($questionId)
This class provides processing control methods.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setShowSuggestedSolution($showSuggestedSolution)
setExternalSegmentation($a_val)
Set external segmentation.
getAnswerListAnchor($questionId)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
getAnswerListAnchorEnabled()
setAnswerListAnchorEnabled($answerListAnchorEnabled)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct(ilCtrl $ctrl, $parent, $cmd)
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setIsPdfGenerationRequest($is_print_request)
getActionList($questionId)
$is_pdf_generation_request
getSingleAnswerScreenCmd()
setSingleAnswerScreenCmd($singleAnswerScreenCmd)
getShowSuggestedSolution()