56 $this->uiFactory = $DIC->ui()->factory();
57 $this->uiRenderer = $DIC->ui()->renderer();
117 $this->
lng->txt(
'save')
122 $this->
lng->txt(
'cancel')
127 $this->
lng->txt(
'back')
131 $this->
setTitle($this->assignment->getSkillTitle());
134 $questionTitle->
setValue($this->question->getTitle());
135 $this->
addItem($questionTitle);
138 $questionDesc->
setValue($this->question->getComment());
152 $this->
lng->txt(
'qpl_skill_point_eval_by_quest_result'),
155 $evaluationMode->addOption($evalOptionReachedQuestionPoints);
157 $this->
lng->txt(
'qpl_skill_point_eval_by_solution_compare'),
160 $evaluationMode->addOption($evalOptionLogicalAnswerCompare);
161 $evaluationMode->setRequired(
true);
162 $evaluationMode->
setValue($this->assignment->getEvalMode());
164 $evaluationMode->setDisabled(
true);
166 $this->
addItem($evaluationMode);
169 $this->
lng->txt(
'tst_solution_compare_cfg'),
170 'solution_compare_expressions' 172 $questSolutionCompareExpressions->
setRequired(
true);
175 $questSolutionCompareExpressions->setQuestionObject($this->question);
176 $questSolutionCompareExpressions->setValues($this->assignment->getSolutionComparisonExpressionList()->get());
177 $questSolutionCompareExpressions->setMinvalueShouldBeGreater(
false);
179 $questSolutionCompareExpressions->setMinValue(1);
185 $legenModal = $legendGUI->get();
187 $legendToggleButton = $this->uiFactory
189 ->shy($this->
lng->txt(
'ass_lac_show_legend_btn'),
'#')
190 ->withOnClick($legenModal->getShowSignal());
192 $questSolutionCompareExpressions->setInfo($this->uiRenderer->render([
198 $questSolutionCompareExpressions->setDisabled(
true);
200 $evalOptionLogicalAnswerCompare->addSubItem($questSolutionCompareExpressions);
203 $evalOptionReachedQuestionPoints->
addSubItem($questResultSkillPoints);
209 $evaluationMode->
setValue($this->
lng->txt(
'qpl_skill_point_eval_by_quest_result'));
210 $this->
addItem($evaluationMode);
213 $evaluationMode->addSubItem($questResultSkillPoints);
218 $questResultSkillPoints =
new ilNumberInputGUI($this->
lng->txt(
'tst_comp_points'),
'q_res_skill_points');
220 $questResultSkillPoints->setSize(4);
221 $questResultSkillPoints->setMinvalueShouldBeGreater(
false);
222 $questResultSkillPoints->setMinValue(1);
223 $questResultSkillPoints->allowDecimals(
false);
224 $questResultSkillPoints->setValue($this->assignment->getSkillPoints());
226 $questResultSkillPoints->setDisabled(
true);
229 return $questResultSkillPoints;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Abstract basic class which is to be extended by the concrete assessment question type classes...
const CMD_SAVE_SKILL_QUEST_ASSIGN_PROPERTIES_FORM
setValue(string $a_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
const CMD_SHOW_SKILL_QUEST_ASSIGNS