19declare(strict_types=1);
44 'ilTestEvaluationGUI' => 1,
45 'ilTestServiceGUI' => 2
58 if (isset($this->tableIdsByParentClasses[get_class($parent)])) {
59 $tableId = $this->tableIdsByParentClasses[get_class($parent)];
64 $this->
setId(
'tst_pdo_' . $tableId);
84 $this->ui_factory =
$DIC->ui()->factory();
85 $this->ui_renderer =
$DIC->ui()->renderer();
91 $this->
setRowTemplate(
'tpl.il_as_tst_pass_details_overview_qst_row.html',
'components/ILIAS/Test');
98 $passHeaderLabel = $this->
lng->txt(
"tst_attempt");
100 $passHeaderLabel = $this->
lng->txt(
"pass");
103 $this->
addColumn($passHeaderLabel,
'pass',
'');
105 $this->
addColumn($this->
lng->txt(
"tst_question_no"),
'',
'');
108 $this->
addColumn($this->
lng->txt(
"question_id"),
'',
'');
109 $this->
addColumn($this->
lng->txt(
"tst_question_title"),
'',
'');
112 $this->
addColumn($this->
lng->txt(
'tst_res_lo_objectives_header'),
'',
'');
115 $this->
addColumn($this->
lng->txt(
"tst_maximum_points"),
'',
'');
116 $this->
addColumn($this->
lng->txt(
"tst_reached_points"),
'',
'');
118 $this->
addColumn($this->
lng->txt(
"tst_percent_solved"),
'',
'');
121 $this->
addColumn($this->
lng->txt(
"solution_hint"),
'',
'');
136 $this->is_pdf_generation_request = $is_print_request;
141 $this->
ctrl->setParameter($this->parent_obj,
'evaluation', $a_set[
'qid']);
143 if (isset($a_set[
'pass'])) {
144 $this->
ctrl->setParameter($this->parent_obj,
'pass', $a_set[
'pass']);
150 if (strlen($questionTitleLink)) {
151 $this->tpl->setVariable(
'URL_QUESTION_TITLE', $questionTitleLink);
153 $this->tpl->setCurrentBlock(
'title_link_end_tag');
154 $this->tpl->touchBlock(
'title_link_end_tag');
155 $this->tpl->parseCurrentBlock();
160 $objectives = $this->questionRelatedObjectivesList->getQuestionRelatedObjectiveTitles($a_set[
'qid']);
165 $this->tpl->setVariable(
'SOLUTION_HINT', $a_set[
'solution']);
169 $this->tpl->setVariable(
'ACTIONS_MENU', $this->
getActionList($a_set[
'qid']));
172 $this->tpl->setVariable(
'VALUE_QUESTION_TITLE', $a_set[
'title']);
173 $this->tpl->setVariable(
'VALUE_QUESTION_ID', $a_set[
'qid']);
176 $this->tpl->setVariable(
'VALUE_QUESTION_PASS', $a_set[
'pass'] + 1);
178 $this->tpl->setVariable(
'VALUE_QUESTION_COUNTER', $a_set[
'nr']);
181 $this->tpl->setVariable(
'VALUE_MAX_POINTS', $a_set[
'max']);
182 $this->tpl->setVariable(
'VALUE_REACHED_POINTS', $a_set[
'reached']);
183 $this->tpl->setVariable(
'VALUE_PERCENT_SOLVED', $a_set[
'percent']);
185 $this->tpl->setVariable(
'ROW_ID', $this->
getRowId($a_set[
'qid']));
190 return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
228 $actions[] = $this->ui_factory->link()->standard($this->
lng->txt(
'tst_list_answer_details'), $this->getAnswerListAnchor($questionId));
231 $dropdown = $this->ui_factory->dropdown()->standard($actions)->withLabel($this->
lng->txt(
'tst_answer_details'));
232 return $this->ui_renderer->render($dropdown);
247 return "#detailed_answer_block_act_{$this->getActiveId()}_qst_{$questionId}";
Builds a Color from either hex- or rgb values.
Class ilCtrl provides processing control methods.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setExternalSegmentation(bool $a_val)
setFormName(string $a_name="")
setPrefix(string $a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
disable(string $a_module_name)
getShowSuggestedSolution()
getAnswerListAnchor($questionId)
setIsPdfGenerationRequest(bool $is_print_request)
ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList
isQuestionTitleLinkPossible()
setShowSuggestedSolution(bool $showSuggestedSolution)
__construct(ilCtrl $ctrl, ilTestServiceGUI $parent, string $cmd)
setObjectiveOrientedPresentationEnabled(bool $objective_oriented_presentation_enabled)
getQuestionTitleLink($questionId)
fillRow(array $a_set)
Standard Version of Fill Row.
setActiveId(int $active_id)
bool $is_pdf_generation_request
bool $multipleObjectivesInvolved
isObjectiveOrientedPresentationEnabled()
bool $objective_oriented_presentation_enabled
getActionList($questionId)
bool $answerListAnchorEnabled
setAnswerListAnchorEnabled($answerListAnchorEnabled)
setPassColumnEnabled(bool $passColumnEnabled)
getQuestionRelatedObjectivesList()
array $tableIdsByParentClasses
bool $showSuggestedSolution
getAnswerListAnchorEnabled()
setQuestionRelatedObjectivesList(ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList)
setMultipleObjectivesInvolved($multipleObjectivesInvolved)
areMultipleObjectivesInvolved()
Service GUI class for tests.
An entity that renders components to a string output.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc