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));
116 $this->lng->txt(
'save')
121 $this->lng->txt(
'cancel')
128 $this->lng->txt(
'back')
132 $this->
setTitle($this->assignment->getSkillTitle());
135 $questionTitle->
setValue($this->question->getTitle());
136 $this->
addItem($questionTitle);
139 $questionDesc->
setValue($this->question->getComment());
156 if( $this->assignment->hasEvalModeBySolution() )
158 $langVar =
'ass_lac_hide_legend_btn';
162 $langVar =
'ass_lac_show_legend_btn';
165 return '<a id="lac_legend_toggle_btn" href="#">'.$this->lng->txt($langVar).
'</a>';
172 $this->lng->txt(
'qpl_skill_point_eval_by_quest_result'),
'result' 174 $evaluationMode->addOption($evalOptionReachedQuestionPoints);
176 $this->lng->txt(
'qpl_skill_point_eval_by_solution_compare'),
'solution' 178 $evaluationMode->addOption($evalOptionLogicalAnswerCompare);
179 $evaluationMode->setRequired(
true);
180 $evaluationMode->
setValue($this->assignment->getEvalMode());
183 $evaluationMode->setDisabled(
true);
185 $this->
addItem($evaluationMode);
188 $this->lng->txt(
'tst_solution_compare_cfg'),
'solution_compare_expressions' 190 $questSolutionCompareExpressions->
setRequired(
true);
193 $questSolutionCompareExpressions->setQuestionObject($this->question);
194 $questSolutionCompareExpressions->setValues($this->assignment->getSolutionComparisonExpressionList()->get());
195 $questSolutionCompareExpressions->setMinvalueShouldBeGreater(
false);
196 $questSolutionCompareExpressions->setMinValue(1);
199 $questSolutionCompareExpressions->setDisabled(
true);
206 $evalOptionLogicalAnswerCompare->addSubItem($questSolutionCompareExpressions);
209 $evalOptionReachedQuestionPoints->
addSubItem($questResultSkillPoints);
215 $evaluationMode->
setValue($this->lng->txt(
'qpl_skill_point_eval_by_quest_result'));
216 $this->
addItem($evaluationMode);
219 $evaluationMode->addSubItem($questResultSkillPoints);
224 $questResultSkillPoints =
new ilNumberInputGUI($this->lng->txt(
'tst_comp_points'),
'q_res_skill_points');
226 $questResultSkillPoints->setSize(4);
227 $questResultSkillPoints->setMinvalueShouldBeGreater(
false);
228 $questResultSkillPoints->setMinValue(1);
229 $questResultSkillPoints->allowDecimals(
false);
230 $questResultSkillPoints->setValue($this->assignment->getSkillPoints());
233 $questResultSkillPoints->setDisabled(
true);
236 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