19 declare(strict_types=1);
46 $this->ui_factory = $DIC[
'ui.factory'];
47 $this->ui_renderer = $DIC[
'ui.renderer'];
88 $this->
lng->txt(
'save')
93 $this->
lng->txt(
'cancel')
98 $this->
lng->txt(
'back')
102 $this->
setTitle($this->assignment->getSkillTitle());
105 $questionTitle->setValue($this->question->getTitle());
106 $this->
addItem($questionTitle);
109 $questionDesc->setValue($this->question->getComment());
121 if ($this->legend_modal ===
null) {
122 return parent::getHTML();
124 return parent::getHTML() . $this->ui_renderer->render($this->legend_modal);
131 $this->
lng->txt(
'qpl_skill_point_eval_by_quest_result'),
134 $evaluation_mode->addOption($eval_option_reached_pointsoints);
136 $this->
lng->txt(
'qpl_skill_point_eval_by_solution_compare'),
139 $evaluation_mode->addOption($eval_option_logical_answer_compare);
140 $evaluation_mode->setRequired(
true);
141 $evaluation_mode->
setValue($this->assignment->getEvalMode());
143 $evaluation_mode->setDisabled(
true);
145 $this->
addItem($evaluation_mode);
148 $this->
lng->txt(
'tst_solution_compare_cfg'),
149 'solution_compare_expressions' 151 $quest_solution_compare_expressions->
setRequired(
true);
154 $quest_solution_compare_expressions->setQuestionObject($this->question);
155 $quest_solution_compare_expressions->setValues($this->assignment->getSolutionComparisonExpressionList()->get());
156 $quest_solution_compare_expressions->setMinvalueShouldBeGreater(
false);
157 $quest_solution_compare_expressions->setMinValue(1);
164 $this->legend_modal = $legend_gui->get();
166 $legend_show_button = $this->ui_factory
168 ->shy($this->
lng->txt(
'ass_lac_show_legend_btn'),
'#')
169 ->withOnClick($this->legend_modal->getShowSignal());
171 $quest_solution_compare_expressions->setInfo(
172 $this->ui_renderer->render($legend_show_button)
176 $quest_solution_compare_expressions->setDisabled(
true);
178 $eval_option_logical_answer_compare->addSubItem($quest_solution_compare_expressions);
188 $evaluationMode->setValue($this->
lng->txt(
'qpl_skill_point_eval_by_quest_result'));
189 $this->
addItem($evaluationMode);
192 $evaluationMode->addSubItem($questResultSkillPoints);
197 $questResultSkillPoints =
new ilNumberInputGUI($this->
lng->txt(
'tst_comp_points'),
'q_res_skill_points');
199 $questResultSkillPoints->setSize(4);
200 $questResultSkillPoints->setMinvalueShouldBeGreater(
false);
201 $questResultSkillPoints->setMinValue(1);
202 $questResultSkillPoints->allowDecimals(
false);
203 $questResultSkillPoints->setValue((
string) $this->assignment->getSkillPoints());
205 $questResultSkillPoints->setDisabled(
true);
208 return $questResultSkillPoints;
This describes commonalities between the different modals.
This class represents an option in a radio group.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const CMD_SAVE_SKILL_QUEST_ASSIGN_PROPERTIES_FORM
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setValue(string $a_value)
__construct(Container $dic, ilPlugin $plugin)
const CMD_SHOW_SKILL_QUEST_ASSIGNS