ILIAS
Release_5_0_x_branch Revision 61816
|
Interface ilGuiQuestionScoringAdjustable. More...
Public Member Functions | |
populateQuestionSpecificFormPart (ilPropertyFormGUI $form) | |
Adds the question specific forms parts to a question property form gui. | |
writeQuestionSpecificPostData (ilPropertyFormGUI $form) | |
Extracts the question specific values from $_POST and applies them to the data object. | |
getAfterParticipationSuppressionQuestionPostVars () | |
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustment. | |
getAggregatedAnswersView ($relevant_answers) | |
Returns an html string containing a question specific representation of the answers so far given in the test for use in the right column in the scoring adjustment user interface. |
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 23 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, assOrderingQuestionGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assMultipleChoiceGUI, assKprimChoiceGUI, assJavaAppletGUI, assSingleChoiceGUI, assTextQuestionGUI, assErrorTextGUI, assFlashQuestionGUI, assFileUploadGUI, assTextSubsetGUI, assNumericGUI, and assOrderingHorizontalGUI.
ilGuiQuestionScoringAdjustable::getAggregatedAnswersView | ( | $relevant_answers | ) |
Returns an html string containing a question specific representation of the answers so far given in the test for use in the right column in the scoring adjustment user interface.
array | $relevant_answers |
Implemented in assClozeTestGUI, assOrderingQuestionGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assMultipleChoiceGUI, assKprimChoiceGUI, assSingleChoiceGUI, assJavaAppletGUI, assTextQuestionGUI, assErrorTextGUI, assFlashQuestionGUI, assOrderingHorizontalGUI, assFileUploadGUI, assTextSubsetGUI, and assNumericGUI.
ilGuiQuestionScoringAdjustable::populateQuestionSpecificFormPart | ( | ilPropertyFormGUI | $form | ) |
Adds the question specific forms parts to a question property form gui.
ilPropertyFormGUI | $form |
Implemented in assClozeTestGUI, assErrorTextGUI, assFlashQuestionGUI, assKprimChoiceGUI, and assFileUploadGUI.
ilGuiQuestionScoringAdjustable::writeQuestionSpecificPostData | ( | ilPropertyFormGUI | $form | ) |
Extracts the question specific values from $_POST and applies them to the data object.
bool | $always | If true, a check for form validity is omitted. |
Implemented in assMultipleChoiceGUI, assSingleChoiceGUI, assTextQuestionGUI, assOrderingHorizontalGUI, assTextSubsetGUI, assNumericGUI, assKprimChoiceGUI, assClozeTestGUI, assOrderingQuestionGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assFlashQuestionGUI, assErrorTextGUI, assJavaAppletGUI, and assFileUploadGUI.