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)])) {
49 $tableId = $this->tableIdsByParentClasses[get_class($parent)];
54 $this->
setId(
'tst_pdo_' . $tableId);
60 parent::__construct($parent, $cmd);
63 $this->
setFormAction($this->ctrl->getFormAction($parent, $cmd));
77 $this->
setRowTemplate(
'tpl.il_as_tst_pass_details_overview_qst_row.html',
'Modules/Test');
87 $passHeaderLabel = $this->lng->txt(
"tst_attempt");
89 $passHeaderLabel = $this->lng->txt(
"pass");
92 $this->
addColumn($passHeaderLabel,
'pass',
'');
94 $this->
addColumn($this->lng->txt(
"tst_question_no"),
'',
'');
97 $this->
addColumn($this->lng->txt(
"question_id"),
'',
'');
98 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'',
'');
101 $this->
addColumn($this->lng->txt(
'tst_res_lo_objectives_header'),
'',
'');
104 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'',
'');
105 $this->
addColumn($this->lng->txt(
"tst_reached_points"),
'',
'');
108 $this->
addColumn($this->lng->txt(
"tst_question_hints_requested_hint_count_header"),
'',
'');
111 $this->
addColumn($this->lng->txt(
"tst_percent_solved"),
'',
'');
114 $this->
addColumn($this->lng->txt(
"solution_hint"),
'',
'');
129 if (count($this->parent_obj->object->getResultFilterTaxIds())) {
130 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
132 foreach ($this->parent_obj->object->getResultFilterTaxIds() as $taxId) {
133 $postvar =
"tax_$taxId";
137 $inp->readFromSession();
138 $this->filter[$postvar] = $inp->getValue();
158 $this->is_pdf_generation_request = $is_print_request;
166 $this->ctrl->setParameter($this->parent_obj,
'evaluation',
$row[
'qid']);
168 if (isset(
$row[
'pass'])) {
169 $this->ctrl->setParameter($this->parent_obj,
'pass',
$row[
'pass']);
175 if (strlen($questionTitleLink)) {
176 $this->tpl->setVariable(
'URL_QUESTION_TITLE', $questionTitleLink);
178 $this->tpl->setCurrentBlock(
'title_link_end_tag');
179 $this->tpl->touchBlock(
'title_link_end_tag');
180 $this->tpl->parseCurrentBlock();
185 $objectives = $this->questionRelatedObjectivesList->getQuestionRelatedObjectiveTitles(
$row[
'qid']);
186 $this->tpl->setVariable(
'VALUE_LO_OBJECTIVES', strlen($objectives) ? $objectives :
' ');
190 $this->tpl->setVariable(
'VALUE_HINT_COUNT', (
int)
$row[
'requested_hints']);
194 $this->tpl->setVariable(
'SOLUTION_HINT',
$row[
'solution']);
201 $this->tpl->setVariable(
'VALUE_QUESTION_TITLE',
$row[
'title']);
202 $this->tpl->setVariable(
'VALUE_QUESTION_ID',
$row[
'qid']);
205 $this->tpl->setVariable(
'VALUE_QUESTION_PASS',
$row[
'pass'] + 1);
207 $this->tpl->setVariable(
'VALUE_QUESTION_COUNTER',
$row[
'nr']);
210 $this->tpl->setVariable(
'VALUE_MAX_POINTS',
$row[
'max']);
211 $this->tpl->setVariable(
'VALUE_REACHED_POINTS',
$row[
'reached']);
212 $this->tpl->setVariable(
'VALUE_PERCENT_SOLVED',
$row[
'percent']);
214 $this->tpl->setVariable(
'ROW_ID', $this->
getRowId(
$row[
'qid']));
219 return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
268 $aslGUI->setListTitle($this->lng->txt(
'tst_answer_details'));
269 $aslGUI->setId(
"act{$this->getActiveId()}_qst{$questionId}");
273 $this->lng->txt(
'tst_list_answer_details'),
281 $this->lng->txt(
'tst_single_answer_details'),
287 return $aslGUI->getHTML();
312 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)
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.
$is_pdf_generation_request
getSingleAnswerScreenCmd()
setSingleAnswerScreenCmd($singleAnswerScreenCmd)
getQuestionRelatedObjectivesList()
setLimit($a_limit=0, $a_default_limit=0)
getShowSuggestedSolution()