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


Public Member Functions | |
| definition () | |
| validation ($data, $files) | |
Protected Member Functions | |
| validate_uploaded_file ($data, $errors) | |
Form used to select a file and file format for the import
Definition at line 34 of file import_form.php.
| definition | ( | ) |
Abstract method - always override!
Reimplemented from moodleform.
Definition at line 36 of file import_form.php.

| validate_uploaded_file | ( | $ | data, |
| $ | errors | ||
| ) | [protected] |
Checks that a file has been uploaded, and that it is of a plausible type.
| array | $data | the submitted data. |
| array | $errors | the errors so far. |
Definition at line 64 of file import_form.php.


| validation | ( | $ | data, |
| $ | files | ||
| ) |
Dummy stub method - override if you needed to perform some extra validation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.
Server side rules do not work for uploaded files, implement serverside rules here if needed.
| 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 91 of file import_form.php.
