38 $this->uiFactory = $DIC->ui()->factory();
39 $this->uiRenderer = $DIC->ui()->renderer();
94 $this->
setFormAction($this->ctrl->getFormAction($this->parentGUI));
99 $this->lng->txt(
'save')
104 $this->lng->txt(
'cancel')
109 $this->lng->txt(
'back')
113 $this->
setTitle($this->assignment->getSkillTitle());
116 $questionTitle->
setValue($this->question->getTitle());
117 $this->
addItem($questionTitle);
120 $questionDesc->
setValue($this->question->getComment());
134 $this->lng->txt(
'qpl_skill_point_eval_by_quest_result'),
137 $evaluationMode->addOption($evalOptionReachedQuestionPoints);
139 $this->lng->txt(
'qpl_skill_point_eval_by_solution_compare'),
142 $evaluationMode->addOption($evalOptionLogicalAnswerCompare);
143 $evaluationMode->setRequired(
true);
144 $evaluationMode->
setValue($this->assignment->getEvalMode());
146 $evaluationMode->setDisabled(
true);
148 $this->
addItem($evaluationMode);
151 $this->lng->txt(
'tst_solution_compare_cfg'),
152 'solution_compare_expressions' 154 $questSolutionCompareExpressions->
setRequired(
true);
157 $questSolutionCompareExpressions->setQuestionObject($this->question);
158 $questSolutionCompareExpressions->setValues($this->assignment->getSolutionComparisonExpressionList()->get());
159 $questSolutionCompareExpressions->setMinvalueShouldBeGreater(
false);
161 $questSolutionCompareExpressions->setMinValue(1);
165 $legendGUI =
new ilAssLacLegendGUI($this->pageTemplate, $this->lng, $this->uiFactory);
167 $legenModal = $legendGUI->get();
169 $legendToggleButton = $this->uiFactory
171 ->shy($this->lng->txt(
'ass_lac_show_legend_btn'),
'#')
172 ->withOnClick($legenModal->getShowSignal());
174 $questSolutionCompareExpressions->setInfo($this->uiRenderer->render([
180 $questSolutionCompareExpressions->setDisabled(
true);
182 $evalOptionLogicalAnswerCompare->addSubItem($questSolutionCompareExpressions);
185 $evalOptionReachedQuestionPoints->
addSubItem($questResultSkillPoints);
191 $evaluationMode->
setValue($this->lng->txt(
'qpl_skill_point_eval_by_quest_result'));
192 $this->
addItem($evaluationMode);
195 $evaluationMode->addSubItem($questResultSkillPoints);
200 $questResultSkillPoints =
new ilNumberInputGUI($this->lng->txt(
'tst_comp_points'),
'q_res_skill_points');
202 $questResultSkillPoints->setSize(4);
203 $questResultSkillPoints->setMinvalueShouldBeGreater(
false);
204 $questResultSkillPoints->setMinValue(1);
205 $questResultSkillPoints->allowDecimals(
false);
206 $questResultSkillPoints->setValue($this->assignment->getSkillPoints());
208 $questResultSkillPoints->setDisabled(
true);
211 return $questResultSkillPoints;
This class represents an option in a radio group.
This class provides processing control methods.
Class iQuestionCondition.
setValue($a_value)
Set Value.
const CMD_SAVE_SKILL_QUEST_ASSIGN_PROPERTIES_FORM
setValue($a_value)
Set Value.
This class represents a non editable value in a property form.
__construct(Container $dic, ilPlugin $plugin)
const CMD_SHOW_SKILL_QUEST_ASSIGNS