4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
36 'ilTestEvaluationGUI' => 1,
37 'ilTestServiceGUI' => 2
48 if( isset($this->tableIdsByParentClasses[get_class($parent)]) )
50 $tableId = $this->tableIdsByParentClasses[get_class($parent)];
55 $this->
setId(
'tst_pdo_'.$tableId);
61 parent::__construct($parent,
$cmd);
78 $this->
setRowTemplate(
'tpl.il_as_tst_pass_details_overview_qst_row.html',
'Modules/Test');
90 $passHeaderLabel = $this->lng->txt(
"tst_attempt");
94 $passHeaderLabel = $this->lng->txt(
"pass");
97 $this->
addColumn($passHeaderLabel,
'pass',
'');
101 $this->
addColumn($this->lng->txt(
"tst_question_no"),
'',
'');
104 $this->
addColumn($this->lng->txt(
"question_id"),
'',
'');
105 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'',
'');
109 $this->
addColumn($this->lng->txt(
'tst_res_lo_objectives_header'),
'',
'');
112 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'',
'');
113 $this->
addColumn($this->lng->txt(
"tst_reached_points"),
'',
'');
117 $this->
addColumn($this->lng->txt(
"tst_question_hints_requested_hint_count_header"),
'',
'');
120 $this->
addColumn($this->lng->txt(
"tst_percent_solved"),
'',
'');
124 $this->
addColumn($this->lng->txt(
"solution_hint"),
'',
'');
140 if( count($this->parent_obj->object->getResultFilterTaxIds()) )
142 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
144 foreach($this->parent_obj->object->getResultFilterTaxIds() as $taxId)
146 $postvar =
"tax_$taxId";
150 $inp->readFromSession();
151 $this->filter[$postvar] = $inp->getValue();
171 $this->is_pdf_generation_request = $is_print_request;
176 $this->ctrl->setParameter($this->parent_obj,
'evaluation', $row[
'qid']);
178 if( isset($row[
'pass']) )
180 $this->ctrl->setParameter($this->parent_obj,
'pass', $row[
'pass']);
187 if( strlen($questionTitleLink) )
189 $this->tpl->setVariable(
'URL_QUESTION_TITLE', $questionTitleLink);
191 $this->tpl->setCurrentBlock(
'title_link_end_tag');
192 $this->tpl->touchBlock(
'title_link_end_tag');
193 $this->tpl->parseCurrentBlock();
199 $objectives = $this->questionRelatedObjectivesList->getQuestionRelatedObjectiveTitles($row[
'qid']);
200 $this->tpl->setVariable(
'VALUE_LO_OBJECTIVES', strlen($objectives) ? $objectives :
' ');
205 $this->tpl->setVariable(
'VALUE_HINT_COUNT', (
int)$row[
'requested_hints']);
210 $this->tpl->setVariable(
'SOLUTION_HINT', $row[
'solution']);
215 $this->tpl->setVariable(
'ACTIONS_MENU', $this->
getActionList($row[
'qid']));
218 $this->tpl->setVariable(
'VALUE_QUESTION_TITLE', $row[
'title']);
219 $this->tpl->setVariable(
'VALUE_QUESTION_ID', $row[
'qid']);
223 $this->tpl->setVariable(
'VALUE_QUESTION_PASS', $row[
'pass'] + 1);
227 $this->tpl->setVariable(
'VALUE_QUESTION_COUNTER', $row[
'nr']);
230 $this->tpl->setVariable(
'VALUE_MAX_POINTS', $row[
'max']);
231 $this->tpl->setVariable(
'VALUE_REACHED_POINTS', $row[
'reached']);
232 $this->tpl->setVariable(
'VALUE_PERCENT_SOLVED', $row[
'percent']);
234 $this->tpl->setVariable(
'ROW_ID', $this->
getRowId($row[
'qid']));
239 return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
295 $aslGUI->setListTitle($this->lng->txt(
'tst_answer_details'));
296 $aslGUI->setId(
"act{$this->getActiveId()}_qst{$questionId}");
301 $this->lng->txt(
'tst_list_answer_details'),
'tst_pass_details', $this->
getAnswerListAnchor($questionId)
308 $this->lng->txt(
'tst_single_answer_details'),
'tst_pass_details',
313 return $aslGUI->getHTML();
338 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)
setQuestionRelatedObjectivesList($questionRelatedObjectivesList)
setObjectiveOrientedPresentationEnabled($objectiveOrientedPresentationEnabled)
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.
setPassColumnEnabled($passColumnEnabled)
__construct(ilCtrl $ctrl, $parent, $cmd)
setMultipleObjectivesInvolved($multipleObjectivesInvolved)
areMultipleObjectivesInvolved()
isObjectiveOrientedPresentationEnabled()
$questionRelatedObjectivesList
setRowTemplate($a_template, $a_template_dir="")
Set row template.
$multipleObjectivesInvolved
User interface class for advanced drop-down selection lists.
$objectiveOrientedPresentationEnabled
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)
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.
getQuestionRelatedObjectivesList()
setLimit($a_limit=0, $a_default_limit=0)
getShowSuggestedSolution()