ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
populateQuestionSpecificFormPart (ilPropertyFormGUI $form) | |
Adds the question specific forms parts to a question property form gui. More... | |
writeQuestionSpecificPostData (ilPropertyFormGUI $form) | |
Extracts the question specific values from the request and applies them to the data object. More... | |
getAfterParticipationSuppressionQuestionPostVars () | |
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustment. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Interface ilGuiQuestionScoringAdjustable
This is the extended interface for questions, which support the relevant object-class methods for post-test-scoring adjustments. This is the gui-part of the interfaces.
In order to implement this interface from the current state in ILIAS 4.3, you need to refactor methods and extract code. populateQuestionSpecificFormPart and populateAnswerSpecificFormPart reside in editQuestion. The other methods, writeQuestionSpecificPostData and writeAnswerSpecificPostData are in writePostData. A good example how this is done can be found in class.assClozeTestGUI.php.
Definition at line 38 of file interface.ilGuiQuestionScoringAdjustable.php.
ilGuiQuestionScoringAdjustable::getAfterParticipationSuppressionQuestionPostVars | ( | ) |
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustment.
The form elements will be shown disabled, so the users see the usual form but can only edit the settings, which make sense in the given context.
E.g. array('cloze_type', 'image_filename')
Implemented in assClozeTestGUI, assMatchingQuestionGUI, assMultipleChoiceGUI, assKprimChoiceGUI, assImagemapQuestionGUI, assTextQuestionGUI, assOrderingQuestionGUI, assSingleChoiceGUI, assLongMenuGUI, assErrorTextGUI, assTextSubsetGUI, assNumericGUI, assFileUploadGUI, and assOrderingHorizontalGUI.
ilGuiQuestionScoringAdjustable::populateQuestionSpecificFormPart | ( | ilPropertyFormGUI | $form | ) |
Adds the question specific forms parts to a question property form gui.
Implemented in assClozeTestGUI, assErrorTextGUI, assLongMenuGUI, assKprimChoiceGUI, and assFileUploadGUI.
ilGuiQuestionScoringAdjustable::writeQuestionSpecificPostData | ( | ilPropertyFormGUI | $form | ) |
Extracts the question specific values from the request and applies them to the data object.
Implemented in assMultipleChoiceGUI, assTextQuestionGUI, assSingleChoiceGUI, assTextSubsetGUI, assNumericGUI, assOrderingHorizontalGUI, assKprimChoiceGUI, assClozeTestGUI, assOrderingQuestionGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assErrorTextGUI, assLongMenuGUI, and assFileUploadGUI.