|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| is_gave_up () | |
| get_feedback_class () | |
| get_state_class ($showcorrectness) | |
| corresponding_commented_state ($fraction) | |
Definition at line 361 of file states.php.
| corresponding_commented_state | ( | $ | fraction | ) |
Compute an appropriate state to move to after a manual comment has been added to this state.
| number | $fraction | the manual grade (if any) on the fraction scale. |
Reimplemented from question_state.
Definition at line 371 of file states.php.

Return an appropriate CSS class name ''/'correct'/'partiallycorrect'/'incorrect', for a state.
Reimplemented from question_state.
Definition at line 365 of file states.php.
| get_state_class | ( | $ | showcorrectness | ) |
Return the name of an appropriate string to look up in the question language pack for a state. This is used, for example, by question_behaviour::get_state_string(). However, behaviours sometimes change this default string for soemthing more specific.
| bool | $showcorrectness | Whether right/partial/wrong states should be distinguised, or just treated as 'complete'. |
Reimplemented from question_state.
Definition at line 368 of file states.php.
| is_gave_up | ( | ) |
Is this state one of the ones that mean the question attempt has been graded?
Reimplemented from question_state.
Definition at line 362 of file states.php.