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


Public Member Functions | |
| cancel () | |
| copy ($raterid, $itemid) | |
| validate_grading_element ($elementvalue) | |
| get_rubric_filling ($force=false) | |
| update ($data) | |
| get_grade () | |
| render_grading_element ($page, $gradingformelement) | |
Protected Attributes | |
| $rubric | |
Class to manage one rubric grading instance. Stores information and performs actions like update, copy, validate, submit, etc.
| cancel | ( | ) |
Deletes this (INCOMPLETE) instance from database.
Reimplemented from gradingform_instance.
Definition at line 662 of file lib.php.

| copy | ( | $ | raterid, |
| $ | itemid | ||
| ) |
Duplicates the instance before editing (optionally substitutes raterid and/or itemid with the specified values)
| int | $raterid | value for raterid in the duplicate |
| int | $itemid | value for itemid in the duplicate |
Reimplemented from gradingform_instance.
Definition at line 676 of file lib.php.

| get_grade | ( | ) |
Calculates the grade to be pushed to the gradebook
Reimplemented from gradingform_instance.
Definition at line 770 of file lib.php.

| get_rubric_filling | ( | $ | force = false | ) |
| render_grading_element | ( | $ | page, |
| $ | gradingformelement | ||
| ) |
Returns html for form element of type 'grading'.
| moodle_page | $page | |
| MoodleQuickForm_grading | $formelement |
Reimplemented from gradingform_instance.
Definition at line 800 of file lib.php.

| update | ( | $ | data | ) |
Updates the instance with the data received from grading form. This function may be called via AJAX when grading is not yet completed, so it does not change the status of the instance.
| array | $data |
Reimplemented from gradingform_instance.
Definition at line 733 of file lib.php.

| validate_grading_element | ( | $ | elementvalue | ) |
Validates that rubric is fully completed and contains valid grade on each criterion
| array | $elementvalue | value of element as came in form submit |
Reimplemented from gradingform_instance.
Definition at line 694 of file lib.php.

