| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 347 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 15 times |
| Includes or requires: | 0 files |
moodleform_mod:: (8 methods):
moodleform_mod()
data_preprocessing()
definition_after_data()
validation()
set_data()
standard_coursemodule_elements()
standard_hidden_coursemodule_elements()
add_action_buttons()
Class: moodleform_mod - X-Ref
This class adds extra methods to form wrapper specific to be used for module| moodleform_mod($instance, $section, $cm) X-Ref |
| List of modform features |
| data_preprocessing(&$default_values) X-Ref |
| Only available on moodleform_mod. param: array $default_values passed by reference |
| definition_after_data() X-Ref |
| Each module which defines definition_after_data() must call this method using parent::definition_after_data(); |
| validation($data, $files) X-Ref |
| No description |
| set_data($default_values) X-Ref |
| 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). param: mixed $default_values object or array of default values |
| standard_coursemodule_elements($features=null) X-Ref |
| Adds all the standard elements to a form to edit the settings for an activity module. param: mixed array or object describing supported features - groups, groupings, groupmembersonly, etc. |
| standard_hidden_coursemodule_elements() X-Ref |
| No description |
| add_action_buttons($cancel=true, $submitlabel=null, $submit2label=null) X-Ref |
| Overriding formslib's add_action_buttons() method, to add an extra submit "save changes and return" button. param: bool $cancel show cancel button param: string $submitlabel null means default, false means none, string is label text param: string $submit2label null means default, false means none, string is label text return: void |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |