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


Public Member Functions | |
| define_form_specific (&$form) | |
| define_validate_specific ($data, $files) | |
| define_save_preprocess ($data) | |
Definition at line 3 of file define.class.php.
| define_form_specific | ( | &$ | form | ) |
Prints out the form snippet for the part of creating or editing a profile field specific to the current data type
| object | instance of the moodleform class |
Param 1 for menu type contains the options
Default data
do nothing - overwrite if necessary
Reimplemented from profile_define_base.
Definition at line 5 of file define.class.php.
| define_save_preprocess | ( | $ | data | ) |
Preprocess data from the add/edit profile field form before it is saved. This method is a hook for the child classes to overwrite.
| object | data from the add/edit profile field form |
do nothing - overwrite if necessary
Reimplemented from profile_define_base.
Definition at line 33 of file define.class.php.
| define_validate_specific | ( | $ | data, |
| $ | files | ||
| ) |
Validate the data from the add/edit profile field form that is specific to the current data type
| object | data from the add/edit profile field form |
Check that we have at least 2 options
Check the default data exists in the options
do nothing - overwrite if necessary
Reimplemented from profile_define_base.
Definition at line 15 of file define.class.php.