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

Public Member Functions

 definition ()
 definition_after_data ()
 validation ($data, $files)

Detailed Description

Definition at line 55 of file forms.php.


Member Function Documentation

Abstract method - always override!

needed to select automatically the 'No required capability" option

display notification error if the current requiredcapability doesn't exist anymore

Reimplemented from moodleform.

Definition at line 57 of file forms.php.

Here is the call graph for this function:

Dummy stub method - override if you need to 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.

Reimplemented from moodleform.

Definition at line 125 of file forms.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 135 of file forms.php.


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