Class ilScoringAdjustmentGUI.
More...
Detailed Description
Constructor & Destructor Documentation
ilScoringAdjustmentGUI::__construct |
( |
ilObjTest |
$a_object | ) |
|
Member Function Documentation
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.
References assQuestionGUI\getQuestionType(), and ilObjQuestionPool\getQuestionTypeByTypeId().
{
$types = explode(',',$setting->get('assessment_scoring_adjustment'));
require_once './Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php';
$type_def = array();
foreach ($types as $type)
{
}
$type = $question_object->getQuestionType();
if (in_array($type,$type_def))
{
return true;
}
return false;
}
ilScoringAdjustmentGUI::dispatchCommand |
( |
|
$cmd | ) |
|
|
protected |
ilScoringAdjustmentGUI::editQuestion |
( |
| ) |
|
|
protected |
ilScoringAdjustmentGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 67 of file class.ilScoringAdjustmentGUI.php.
References $cmd, and dispatchCommand().
{
if( ! (bool)$setting->get('assessment_adjustments_enabled', false) )
{
$this->ctrl->redirectByClass('ilObjTestGUI');
}
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
switch($next_class)
{
default:
}
}
ilScoringAdjustmentGUI::outputAdjustQuestionForm |
( |
|
$form | ) |
|
|
protected |
- Parameters
-
Definition at line 223 of file class.ilScoringAdjustmentGUI.php.
Referenced by editQuestion().
{
$this->tpl->addBlockFile( "ADM_CONTENT", "adm_content", "tpl.il_as_tst_questions.html", "Modules/Test" );
$this->tpl->setCurrentBlock( "adm_content" );
$this->tpl->setVariable( 'QUESTIONBROWSER', $form->getHTML() );
$this->tpl->parseCurrentBlock();
}
ilScoringAdjustmentGUI::populateScoringAdjustments |
( |
|
$question, |
|
|
|
$form |
|
) |
| |
|
protected |
- Parameters
-
Definition at line 392 of file class.ilScoringAdjustmentGUI.php.
{
{
$question->populateQuestionSpecificFormPart( $form );
$this->suppressPostParticipationFormElements( $form,
$question->getAfterParticipationSuppressionQuestionPostVars()
);
}
{
$question->populateAnswerSpecificFormPart( $form );
$this->suppressPostParticipationFormElements( $form,
$question->getAfterParticipationSuppressionAnswerPostVars()
);
}
}
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.
Field Documentation
ilScoringAdjustmentGUI::$ctrl |
|
protected |
ilScoringAdjustmentGUI::$ilias |
|
protected |
ilScoringAdjustmentGUI::$lng |
|
protected |
ilScoringAdjustmentGUI::$object |
ilScoringAdjustmentGUI::$ref_id |
|
protected |
ilScoringAdjustmentGUI::$service |
|
protected |
ilScoringAdjustmentGUI::$tpl |
|
protected |
ilScoringAdjustmentGUI::$tree |
|
protected |
The documentation for this class was generated from the following file: