(no description)
File Size: | 494 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
add_outcome:: (8 methods):
get_gradeitem()
definition()
get_context_for_dynamic_submission()
check_access_for_dynamic_submission()
set_data_for_dynamic_submission()
get_page_url_for_dynamic_submission()
process_dynamic_submission()
validation()
Class: add_outcome - X-Ref
Prints the add outcome gradebook form.get_gradeitem() X-Ref |
Helper function to grab the current grade outcome item based on information within the form. return: array |
definition() X-Ref |
Form definition return: void |
get_context_for_dynamic_submission() X-Ref |
Return form context return: context |
check_access_for_dynamic_submission() X-Ref |
Check if current user has access to this form, otherwise throw exception return: void |
set_data_for_dynamic_submission() X-Ref |
Load in existing data as form defaults return: void |
get_page_url_for_dynamic_submission() X-Ref |
Returns url to set in $PAGE->set_url() when form is being rendered or submitted via AJAX return: moodle_url |
process_dynamic_submission() X-Ref |
Process the form submission, used if form was submitted via AJAX return: array |
validation($data, $files) X-Ref |
Form validation. param: array $data array of ("fieldname"=>value) of submitted data param: array $files array of uploaded files "element_name"=>tmp_file_path return: array of "element_name"=>"error_description" if there are errors, |