Class mod_sloodle_mod_form

Description

Used to define the Sloodle module instance add/edit form.

Located in /mod_form.php (line 29)

moodleform_mod
   |
   --mod_sloodle_mod_form
Method Summary
 void data_preprocessing ( &$default_values, array $default_values)
 void definition ()
 bool,array validation (array $data)
Methods
data_preprocessing (line 183)

Pre-processes form initial values.

Given an array of default values (element name => value) by reference, this function can edit the initial values the user sees. Note that this is typically only used for editing existing modules, as the initial defaults can be coded into the form definition.

void data_preprocessing ( &$default_values, array $default_values)
  • array $default_values: Array of element names to values/
  • &$default_values
definition (line 38)

Defines the form

  • uses: $SLOODLE_TYPES
  • uses: $COURSE
  • uses: $CFG
void definition ()
definition_after_data (line 171)

Performs extra processing on the form after existing/default data has been specified.

void definition_after_data ()
validation (line 234)

Validates the form data.

If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.

  • return: Array of fieldnames to error messages, or boolean true if OK
bool,array validation (array $data)
  • array $data: array of ("fieldname"=>value) of submitted data

Documentation generated on Mon, 07 Jul 2008 12:33:02 +0100 by phpDocumentor 1.4.0