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

Public Member Functions

 definition ()
 data_preprocessing (&$default_values)
 validation ($data, $files)
 set_data ($default_values)

Detailed Description

Definition at line 24 of file mod_form.php.


Member Function Documentation

data_preprocessing ( &$  default_values)

Only available on moodleform_mod.

Parameters:
array$default_valuespassed by reference

Reimplemented from moodleform_mod.

Definition at line 270 of file mod_form.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Abstract method - always override!

Reimplemented from moodleform.

Definition at line 26 of file mod_form.php.

Here is the call graph for this function:

set_data ( default_values)

Load in existing data as form defaults. Usually new entry defaults are stored directly in form definition (new entry form); this function is used to load in data where values already exist and data is being edited (edit entry form).

Parameters:
mixed$default_valuesobject or array of default values

Reimplemented from moodleform_mod.

Definition at line 397 of file mod_form.php.

Here is the call graph for this function:

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_mod.

Definition at line 320 of file mod_form.php.

Here is the call graph for this function:


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