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

Public Member Functions | |
| define_form (&$form) | |
| define_form_common (&$form) | |
| define_form_specific (&$form) | |
| define_validate ($data, $files) | |
| define_validate_common ($data, $files) | |
| define_validate_specific ($data, $files) | |
| define_after_data (&$mform) | |
| define_save ($data) | |
| define_save_preprocess ($data) | |
| define_editors () | |
Definition at line 3 of file definelib.php.
| define_after_data | ( | &$ | mform | ) |
Alter form based on submitted or existing data
| object | form |
do nothing - overwrite if necessary
Definition at line 129 of file definelib.php.
| define_editors | ( | ) |
Provides a method by which we can allow the default data in profile_define_* to use an editor
This should return an array of editor names (which will need to be formatted/cleaned)
Reimplemented in profile_define_textarea.
Definition at line 182 of file definelib.php.
| define_form | ( | &$ | form | ) |
Prints out the form snippet for creating or editing a profile field
| object | instance of the moodleform class |
Definition at line 9 of file definelib.php.

| define_form_common | ( | &$ | form | ) |
Prints out the form snippet for the part of creating or editing a profile field common to all data types
| object | instance of the moodleform class |
Definition at line 22 of file definelib.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 |
do nothing - overwrite if necessary
Reimplemented in profile_define_checkbox, profile_define_menu, profile_define_text, and profile_define_textarea.
Definition at line 61 of file definelib.php.

| define_save | ( | $ | data | ) |
Add a new profile field or save changes to current field
| object | data from the add/edit profile field form |
hook for child classes
check to see if the category has changed
Definition at line 138 of file definelib.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 in profile_define_datetime, and profile_define_menu.
Definition at line 169 of file definelib.php.

| define_validate | ( | $ | data, |
| $ | files | ||
| ) |
Validate the data from the add/edit profile field form. Generally this method should not be overwritten by child classes.
| object | data from the add/edit profile field form |
Definition at line 72 of file definelib.php.

| define_validate_common | ( | $ | data, |
| $ | files | ||
| ) |
Validate the data from the add/edit profile field form that is common to all data types. Generally this method should not be overwritten by child classes.
| object | data from the add/edit profile field form |
Check the shortname was not truncated by cleaning
Fetch field-record from DB
Check the shortname is unique
No further checks necessary as the form class will take care of it
Definition at line 90 of file definelib.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 |
do nothing - overwrite if necessary
Reimplemented in profile_define_menu.
Definition at line 120 of file definelib.php.
