ILIAS  release_4-4 Revision
ilGuiQuestionScoringAdjustable Interface Reference

Interface ilGuiQuestionScoringAdjustable. More...

+ Inheritance diagram for ilGuiQuestionScoringAdjustable:
+ Collaboration diagram for ilGuiQuestionScoringAdjustable:

Public Member Functions

 populateQuestionSpecificFormPart (ilPropertyFormGUI $form)
 Adds the question specific forms parts to a question property form gui. More...
 
 writeQuestionSpecificPostData ($always)
 Extracts the question specific values from $_POST 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...
 
 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. More...
 

Detailed Description

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.

See also
ObjScoringAdjustable
Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 23 of file interface.ilGuiQuestionScoringAdjustable.php.

Member Function Documentation

◆ getAfterParticipationSuppressionQuestionPostVars()

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')

Returns
string[]

Implemented in assOrderingQuestionGUI, assMatchingQuestionGUI, assClozeTestGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assTextSubsetGUI, assNumericGUI, and assOrderingHorizontalGUI.

◆ getAggregatedAnswersView()

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.

Parameters
array$relevant_answers
Returns
string

Implemented in assOrderingQuestionGUI, assMatchingQuestionGUI, assClozeTestGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assOrderingHorizontalGUI, assTextSubsetGUI, and assNumericGUI.

◆ populateQuestionSpecificFormPart()

ilGuiQuestionScoringAdjustable::populateQuestionSpecificFormPart ( ilPropertyFormGUI  $form)

Adds the question specific forms parts to a question property form gui.

Parameters
ilPropertyFormGUI$form
Returns
ilPropertyFormGUI

Implemented in assClozeTestGUI.

◆ writeQuestionSpecificPostData()

ilGuiQuestionScoringAdjustable::writeQuestionSpecificPostData (   $always)

Extracts the question specific values from $_POST and applies them to the data object.

Parameters
bool$alwaysIf true, a check for form validity is omitted.
Returns
void

Implemented in assMultipleChoiceGUI, assSingleChoiceGUI, assOrderingHorizontalGUI, assNumericGUI, assTextSubsetGUI, assClozeTestGUI, assOrderingQuestionGUI, and assMatchingQuestionGUI.


The documentation for this interface was generated from the following file: