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 195 of file class.ilScoringAdjustmentGUI.php.
196 {
198 $types = explode(',',$setting->get('assessment_scoring_adjustment'));
199 require_once './Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php';
200 $type_def = array();
201 foreach ($types as $type)
202 {
204 }
205
206 $type = $question_object->getQuestionType();
207 if (in_array($type,$type_def))
208 {
209 return true;
210 }
211 return false;
212 }
static getQuestionTypeByTypeId($type_id)
References assQuestionGUI\getQuestionType(), and ilObjQuestionPool\getQuestionTypeByTypeId().
◆ dispatchCommand()
ilScoringAdjustmentGUI::dispatchCommand |
( |
|
$cmd | ) |
|
|
protected |
Definition at line 85 of file class.ilScoringAdjustmentGUI.php.
86 {
87 switch (strtolower(
$cmd))
88 {
89 case 'savescoringfortest':
90 $this->saveQuestion();
91 break;
92
93 case 'adjustscoringfortest':
95 break;
96
97 case 'showquestionlist':
98 default:
99 $this->questionsObject();
100 }
101 }
References $cmd, and 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 {
72 $this->ctrl->redirectByClass('ilObjTestGUI');
73 }
74
75 $cmd = $this->ctrl->getCmd();
76 $next_class = $this->ctrl->getNextClass($this);
77
78 switch($next_class)
79 {
80 default:
82 }
83 }
References $cmd, and dispatchCommand().
◆ outputAdjustQuestionForm()
ilScoringAdjustmentGUI::outputAdjustQuestionForm |
( |
|
$form | ) |
|
|
protected |
- Parameters
-
Definition at line 223 of file class.ilScoringAdjustmentGUI.php.
224 {
225 $this->tpl->addBlockFile( "ADM_CONTENT", "adm_content", "tpl.il_as_tst_questions.html", "Modules/Test" );
226 $this->tpl->setCurrentBlock( "adm_content" );
227 $this->tpl->setVariable( 'QUESTIONBROWSER', $form->getHTML() );
228 $this->tpl->parseCurrentBlock();
229 }
Referenced by editQuestion().
◆ populateScoringAdjustments()
ilScoringAdjustmentGUI::populateScoringAdjustments |
( |
|
$question, |
|
|
|
$form |
|
) |
| |
|
protected |
- Parameters
-
Definition at line 395 of file class.ilScoringAdjustmentGUI.php.
396 {
398 {
399 $question->populateQuestionSpecificFormPart( $form );
400 $this->suppressPostParticipationFormElements( $form,
401 $question->getAfterParticipationSuppressionQuestionPostVars()
402 );
403 }
404
406 {
407 $question->populateAnswerSpecificFormPart( $form );
408 $this->suppressPostParticipationFormElements( $form,
409 $question->getAfterParticipationSuppressionAnswerPostVars()
410 );
411 }
412 }
Interface ilGuiAnswerScoringAdjustable.
Interface ilGuiQuestionScoringAdjustable.
◆ 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 181 of file class.ilScoringAdjustmentGUI.php.
182 {
187 }
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: