4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
6 require_once
'Modules/TestQuestionPool/classes/class.ilLogicalAnswerComparisonExpressionInputGUI.php';
7 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSolutionComparisonExpressionList.php';
9 require_once
'Services/Form/classes/class.ilNonEditableValueGUI.php';
10 require_once
'Services/Form/classes/class.ilRadioGroupInputGUI.php';
57 parent::__construct();
110 $this->
setFormAction($this->ctrl->getFormAction($this->parentGUI));
115 $this->lng->txt(
'save')
120 $this->lng->txt(
'cancel')
125 $this->lng->txt(
'back')
129 $this->
setTitle($this->assignment->getSkillTitle());
132 $questionTitle->
setValue($this->question->getTitle());
133 $this->
addItem($questionTitle);
136 $questionDesc->
setValue($this->question->getComment());
148 if ($this->assignment->hasEvalModeBySolution()) {
149 $langVar =
'ass_lac_hide_legend_btn';
151 $langVar =
'ass_lac_show_legend_btn';
154 return '<a id="lac_legend_toggle_btn" href="#">' . $this->lng->txt($langVar) .
'</a>';
161 $this->lng->txt(
'qpl_skill_point_eval_by_quest_result'),
164 $evaluationMode->addOption($evalOptionReachedQuestionPoints);
166 $this->lng->txt(
'qpl_skill_point_eval_by_solution_compare'),
169 $evaluationMode->addOption($evalOptionLogicalAnswerCompare);
170 $evaluationMode->setRequired(
true);
171 $evaluationMode->
setValue($this->assignment->getEvalMode());
173 $evaluationMode->setDisabled(
true);
175 $this->
addItem($evaluationMode);
178 $this->lng->txt(
'tst_solution_compare_cfg'),
179 'solution_compare_expressions' 181 $questSolutionCompareExpressions->
setRequired(
true);
184 $questSolutionCompareExpressions->setQuestionObject($this->question);
185 $questSolutionCompareExpressions->setValues($this->assignment->getSolutionComparisonExpressionList()->get());
186 $questSolutionCompareExpressions->setMinvalueShouldBeGreater(
false);
187 $questSolutionCompareExpressions->setMinValue(1);
189 $questSolutionCompareExpressions->setDisabled(
true);
194 $evalOptionLogicalAnswerCompare->addSubItem($questSolutionCompareExpressions);
197 $evalOptionReachedQuestionPoints->
addSubItem($questResultSkillPoints);
203 $evaluationMode->
setValue($this->lng->txt(
'qpl_skill_point_eval_by_quest_result'));
204 $this->
addItem($evaluationMode);
207 $evaluationMode->addSubItem($questResultSkillPoints);
212 $questResultSkillPoints =
new ilNumberInputGUI($this->lng->txt(
'tst_comp_points'),
'q_res_skill_points');
214 $questResultSkillPoints->setSize(4);
215 $questResultSkillPoints->setMinvalueShouldBeGreater(
false);
216 $questResultSkillPoints->setMinValue(1);
217 $questResultSkillPoints->allowDecimals(
false);
218 $questResultSkillPoints->setValue($this->assignment->getSkillPoints());
220 $questResultSkillPoints->setDisabled(
true);
223 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.
const CMD_SHOW_SKILL_QUEST_ASSIGNS