Class ilScoringAdjustmentGUI.
More...
◆ __construct()
ilScoringAdjustmentGUI::__construct |
( |
ilObjTest |
$a_object | ) |
|
Default constructor.
- Parameters
-
Definition at line 48 of file class.ilScoringAdjustmentGUI.php.
49 {
51
56 $this->object = $a_object;
58 $this->ref_id = $a_object->ref_id;
59
60 require_once './Modules/Test/classes/class.ilTestService.php';
62 }
redirection script todo: (a better solution should control the processing via a xml file)
References $ilCtrl, $ilias, $lng, $tpl, and $tree.
◆ allowedInAdjustment()
ilScoringAdjustmentGUI::allowedInAdjustment |
( |
\assQuestionGUI |
$question_object | ) |
|
|
protected |
Returns if the question type is allowed for adjustments in the global test administration.
- Parameters
-
- Returns
- bool
Definition at line 188 of file class.ilScoringAdjustmentGUI.php.
189 {
191 $types = explode(',', $setting->get('assessment_scoring_adjustment'));
192 require_once './Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php';
193 $type_def = array();
194 foreach ($types as
$type) {
196 }
197
198 $type = $question_object->getQuestionType();
199 if (in_array(
$type, $type_def)) {
200 return true;
201 }
202 return false;
203 }
static getQuestionTypeByTypeId($type_id)
References $type, assQuestionGUI\getQuestionType(), and ilObjQuestionPool\getQuestionTypeByTypeId().
◆ dispatchCommand()
ilScoringAdjustmentGUI::dispatchCommand |
( |
|
$cmd | ) |
|
|
protected |
Definition at line 83 of file class.ilScoringAdjustmentGUI.php.
84 {
85 switch (strtolower($cmd)) {
86 case 'savescoringfortest':
87 $this->saveQuestion();
88 break;
89
90 case 'adjustscoringfortest':
92 break;
93
94 case 'showquestionlist':
95 default:
96 $this->questionsObject();
97 }
98 }
References editQuestion().
Referenced by executeCommand().
◆ editQuestion()
ilScoringAdjustmentGUI::editQuestion |
( |
| ) |
|
|
protected |
◆ executeCommand()
ilScoringAdjustmentGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 67 of file class.ilScoringAdjustmentGUI.php.
68 {
70 if (!(bool) $setting->get('assessment_adjustments_enabled', false)) {
71 $this->ctrl->redirectByClass('ilObjTestGUI');
72 }
73
74 $cmd = $this->ctrl->getCmd();
75 $next_class = $this->ctrl->getNextClass($this);
76
77 switch ($next_class) {
78 default:
80 }
81 }
References dispatchCommand().
◆ outputAdjustQuestionForm()
ilScoringAdjustmentGUI::outputAdjustQuestionForm |
( |
|
$form | ) |
|
|
protected |
- Parameters
-
Definition at line 214 of file class.ilScoringAdjustmentGUI.php.
215 {
216 $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.il_as_tst_questions.html", "Modules/Test");
217 $this->tpl->setCurrentBlock("adm_content");
218 $this->tpl->setVariable(
'QUESTIONBROWSER',
$form->getHTML());
219 $this->tpl->parseCurrentBlock();
220 }
References $form.
Referenced by editQuestion().
◆ populateScoringAdjustments()
ilScoringAdjustmentGUI::populateScoringAdjustments |
( |
|
$question, |
|
|
|
$form |
|
) |
| |
|
protected |
- Parameters
-
Definition at line 375 of file class.ilScoringAdjustmentGUI.php.
376 {
377 $question->setAdjustmentEditContext();
378
380 $question->populateQuestionSpecificFormPart(
$form);
381
382 $this->suppressPostParticipationFormElements(
384 $question->getAfterParticipationSuppressionQuestionPostVars()
385 );
386 }
387
389 $question->populateAnswerSpecificFormPart(
$form);
390
391 $this->suppressPostParticipationFormElements(
393 $question->getAfterParticipationSuppressionAnswerPostVars()
394 );
395 }
396 }
Interface ilGuiAnswerScoringAdjustable.
Interface ilGuiQuestionScoringAdjustable.
References $form.
◆ supportsAdjustment()
ilScoringAdjustmentGUI::supportsAdjustment |
( |
\assQuestionGUI |
$question_object | ) |
|
|
protected |
Returns if the given question object support scoring adjustment.
- Parameters
-
- Returns
- bool True, if relevant interfaces are implemented to support scoring adjustment.
Definition at line 174 of file class.ilScoringAdjustmentGUI.php.
175 {
180 }
Interface ilObjAnswerScoringAdjustable.
Interface ilObjQuestionScoringAdjustable.
◆ $ctrl
ilCtrl ilScoringAdjustmentGUI::$ctrl |
|
protected |
◆ $ilias
ILIAS ilScoringAdjustmentGUI::$ilias |
|
protected |
◆ $lng
◆ $object
◆ $ref_id
int ilScoringAdjustmentGUI::$ref_id |
|
protected |
◆ $service
◆ $tpl
◆ $tree
ilTree ilScoringAdjustmentGUI::$tree |
|
protected |
The documentation for this class was generated from the following file: