Moodle  2.2.1
http://www.collinsharper.com
question_state_graded Class Reference
Inheritance diagram for question_state_graded:
Collaboration diagram for question_state_graded:

Public Member Functions

 is_graded ()
 get_state_class ($showcorrectness)
 corresponding_commented_state ($fraction)

Detailed Description

Definition at line 379 of file states.php.


Member Function Documentation

Compute an appropriate state to move to after a manual comment has been added to this state.

Parameters:
number$fractionthe manual grade (if any) on the fraction scale.
Returns:
int the new state.

Reimplemented from question_state.

Definition at line 390 of file states.php.

Here is the call graph for this function:

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.

Parameters:
bool$showcorrectnessWhether right/partial/wrong states should be distinguised, or just treated as 'complete'.
Returns:
string the name of a string that can be looked up in the 'question' lang pack, or used as a CSS class name, etc.

Reimplemented from question_state.

Definition at line 383 of file states.php.

Here is the call graph for this function:

is_graded ( )

Is this state one of the ones that mean the question attempt has been graded?

Returns:
bool

Reimplemented from question_state.

Reimplemented in question_state_gradedright, and question_state_gradedpartial.

Definition at line 380 of file states.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations