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;
179 $this->ctrl->setParameter($this->parent_obj,
'evaluation',
$row[
'qid']);
181 if( isset(
$row[
'pass']) )
183 $this->ctrl->setParameter($this->parent_obj,
'pass',
$row[
'pass']);
190 if( strlen($questionTitleLink) )
192 $this->tpl->setVariable(
'URL_QUESTION_TITLE', $questionTitleLink);
194 $this->tpl->setCurrentBlock(
'title_link_end_tag');
195 $this->tpl->touchBlock(
'title_link_end_tag');
196 $this->tpl->parseCurrentBlock();
202 $objectives = $this->questionRelatedObjectivesList->getQuestionRelatedObjectiveTitles(
$row[
'qid']);
203 $this->tpl->setVariable(
'VALUE_LO_OBJECTIVES', strlen($objectives) ? $objectives :
' ');
208 $this->tpl->setVariable(
'VALUE_HINT_COUNT', (
int)
$row[
'requested_hints']);
213 $this->tpl->setVariable(
'SOLUTION_HINT',
$row[
'solution']);
221 $this->tpl->setVariable(
'VALUE_QUESTION_TITLE',
$row[
'title']);
222 $this->tpl->setVariable(
'VALUE_QUESTION_ID',
$row[
'qid']);
226 $this->tpl->setVariable(
'VALUE_QUESTION_PASS',
$row[
'pass'] + 1);
230 $this->tpl->setVariable(
'VALUE_QUESTION_COUNTER',
$row[
'nr']);
233 $this->tpl->setVariable(
'VALUE_MAX_POINTS',
$row[
'max']);
234 $this->tpl->setVariable(
'VALUE_REACHED_POINTS',
$row[
'reached']);
235 $this->tpl->setVariable(
'VALUE_PERCENT_SOLVED',
$row[
'percent']);
237 $this->tpl->setVariable(
'ROW_ID', $this->
getRowId(
$row[
'qid']));
242 return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
298 $aslGUI->setListTitle($this->lng->txt(
'tst_answer_details'));
299 $aslGUI->setId(
"act{$this->getActiveId()}_qst{$questionId}");
304 $this->lng->txt(
'tst_list_answer_details'),
'tst_pass_details', $this->
getAnswerListAnchor($questionId)
311 $this->lng->txt(
'tst_single_answer_details'),
'tst_pass_details',
316 return $aslGUI->getHTML();
341 return "#detailed_answer_block_act_{$this->getActiveId()}_qst_{$questionId}";
isQuestionTitleLinkPossible()
setShowHintCount($showHintCount)
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.
Create styles array
The data for the language used.
$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)
setFormName($a_formname="")
Set Form name.
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()