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


Public Member Functions | |
| definition () | |
| definition_after_data () | |
| validation ($data, $files) | |
| get_data () | |
| need_confirm_regrading ($controller) | |
Protected Member Functions | |
| & | findButton ($elementname) |
Defines the rubric edit form
Definition at line 36 of file edit_form.php.
| definition | ( | ) |
Form element definition
Reimplemented from moodleform.
Definition at line 41 of file edit_form.php.

Setup the form depending on current values. This method is called after definition(), data submission and set_data(). All form setup that is dependent on form values should go in here.
We remove the element status if there is no current status (i.e. rubric is only being created) so the users do not get confused
Reimplemented from moodleform.
Definition at line 91 of file edit_form.php.

| & findButton | ( | $ | elementname | ) | [protected] |
Returns a form element (submit button) with the name $elementname
| string | $elementname |
Definition at line 204 of file edit_form.php.

| get_data | ( | ) |
Return submitted data if properly submitted or returns NULL if validation fails or if there is no submitted data.
Reimplemented from moodleform.
Definition at line 140 of file edit_form.php.

| need_confirm_regrading | ( | $ | controller | ) |
Check if there are changes in the rubric and it is needed to ask user whether to mark the current grades for re-grading. User may confirm re-grading and continue, return to editing or cancel the changes
| gradingform_rubric_controller | $controller |
Definition at line 157 of file edit_form.php.

| validation | ( | $ | data, |
| $ | files | ||
| ) |
Form vlidation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.
| array | $data | array of ("fieldname"=>value) of submitted data |
| array | $files | array of uploaded files "element_name"=>tmp_file_path |
Reimplemented from moodleform.
Definition at line 114 of file edit_form.php.