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

Public Member Functions

 definition_after_data ()
 validation ($data, $files)

Detailed Description

Confirmation backup user interface stage moodleform.

Nothing to override we only need it defined so that moodleform doesn't get confused between stages.

Definition at line 76 of file backup_moodleform.class.php.


Member Function Documentation

Definition applied after the data is organised.. why's it here? because I want to add elements on the fly. moodle_page $PAGE

Reimplemented from base_moodleform.

Definition at line 78 of file backup_moodleform.class.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.

Parameters:
array$dataarray of ("fieldname"=>value) of submitted data
array$filesarray of uploaded files "element_name"=>tmp_file_path
Returns:
array of "element_name"=>"error_description" if there are errors, or an empty array if everything is OK (true allowed for backwards compatibility too).

Reimplemented from moodleform.

Definition at line 84 of file backup_moodleform.class.php.


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