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


Public Member Functions | |
| profile_field_menu ($fieldid=0, $userid=0) | |
| edit_field_add (&$mform) | |
| edit_field_set_default (&$mform) | |
| edit_save_data_preprocess ($key) | |
| edit_load_user_data (&$user) | |
| edit_field_set_locked (&$mform) | |
Data Fields | |
| $options | |
| $datakey | |
Definition at line 3 of file field.class.php.
| edit_field_add | ( | &$ | mform | ) |
Create the code snippet for this field instance Overwrites the base class method
| object | moodleform instance |
Reimplemented from profile_field_base.
Definition at line 37 of file field.class.php.

| edit_field_set_default | ( | &$ | mform | ) |
Set the default value for this field instance Overwrites the base class method
Reimplemented from profile_field_base.
Definition at line 45 of file field.class.php.
| edit_field_set_locked | ( | &$ | mform | ) |
HardFreeze the field if locked.
| object | instance of the moodleform class |
Reimplemented from profile_field_base.
Definition at line 78 of file field.class.php.

| edit_load_user_data | ( | &$ | user | ) |
When passing the user object to the form class for the edit profile page we should load the key for the saved data Overwrites the base class method
| object | user object |
Reimplemented from profile_field_base.
Definition at line 70 of file field.class.php.
| edit_save_data_preprocess | ( | $ | key | ) |
The data from the form returns the key. This should be converted to the respective option string to be saved in database Overwrites base class accessor method
| integer | the key returned from the select input in the form |
Definition at line 60 of file field.class.php.
| profile_field_menu | ( | $ | fieldid = 0, |
| $ | userid = 0 |
||
| ) |
Constructor method. Pulls out the options for the menu from the database and sets the the corresponding key for the data if it exists
Param 1 for menu type is the options
Set the data key
Definition at line 12 of file field.class.php.

| $datakey |
Definition at line 5 of file field.class.php.
| $options |
Definition at line 4 of file field.class.php.