Moodle  2.2.1
http://www.collinsharper.com
moodleform Class Reference

Inherited by admin_uploadpicture_form, admin_uploaduser_form1, admin_uploaduser_form2, autogroup_form, backup_files_edit_form, base_moodleform, block_edit_form, block_private_files_form, blog_edit_external_form, blog_edit_form, blog_preferences_form, calendar_preferences_form, category_form, cohort_edit_form, community_hub_search_form, course_completion_form, course_edit_form, course_publication_form, course_request_form, course_reset_form, course_restore_form, course_settings_form, coursefiles_edit_form, data_existing_preset_form, data_export_form, data_import_preset_zip_form, data_save_preset_form, database_export_form, database_transfer_form, delete_category_form, edit_calculation_form, edit_category_form, edit_grade_form, edit_item_form, edit_letter_form, edit_outcome_form, edit_outcomeitem_form, edit_scale_form, editcategory_form, editsection_form, enrol_authorize_form, enrol_authorize_import_form, enrol_bulk_enrolment_change_form, enrol_cohort_addinstance_form, enrol_guest_enrol_form, enrol_manual_edit_form, enrol_manual_user_enrolment_form, enrol_meta_addinstance_form, enrol_mnet_addinstance_form, enrol_paypal_edit_form, enrol_self_edit_form, enrol_self_enrol_form, enrol_self_user_enrolment_form, enrol_users_addmember_form, enrol_users_assign_form, essay_grading_form, event_form, external_service_authorised_user_settings_form, external_service_form, external_service_functions_form, feed_edit_form, feedback_edit_add_question_form, feedback_edit_create_template_form, feedback_edit_use_template_form, feedback_import_form, feedback_item_form, field_form, filter_local_settings_form, formslib_test_form, generator_form, grade_export_form, grade_import_form, grade_import_form, grade_import_mapping_form, grader_report_preferences_form, grading_search_template_form, gradingform_rubric_editrubric, group_form, grouping_form, groups_import_form, hub_publish_selector_form, hub_selector_form, import_outcomes_form, key_form, key_form, lesson_add_page_form_base, lesson_display_answer_form_essay, lesson_display_answer_form_matching, lesson_display_answer_form_multichoice_multianswer, lesson_display_answer_form_multichoice_singleanswer, lesson_display_answer_form_numerical, lesson_display_answer_form_shortanswer, lesson_display_answer_form_truefalse, lesson_import_form, lesson_importppt_form, lesson_page_without_answers, login_change_password_form, login_forgot_password_form, login_forgot_password_form, login_signup_form, mnet_profile_form, mnet_review_host_form, mnet_services_form, mnet_simple_host_form, mod_assignment_grading_form, mod_assignment_online_edit_form, mod_assignment_upload_form, mod_assignment_upload_notes_form, mod_assignment_upload_response_form, mod_assignment_uploadsingle_form, mod_assignment_uploadsingle_response_form, mod_data_export_form, mod_data_import_form, mod_feedback_delete_completed_form, mod_feedback_delete_item_form, mod_feedback_delete_template_form, mod_feedback_use_templ_form, mod_folder_edit_form, mod_forum_post_form, mod_glossary_entry_form, mod_glossary_import_form, mod_lti_edit_types_form, mod_quiz_preflight_check_form, mod_quiz_report_overview_settings, mod_quiz_report_responses_settings, mod_scorm_report_interactions_settings, mod_scorm_report_settings, mod_wiki_comments_form, mod_wiki_create_form, mod_wiki_edit_form, mod_wiki_filesedit_form, moodle_group_add_groupmembers_form, moodle_group_create_groups_form, moodle_group_delete_groupmembers_form, moodle_group_delete_groups_form, moodle_group_get_course_groups_form, moodle_group_get_groupmembers_form, moodle_group_get_groups_form, moodle_user_create_users_form, moodle_user_delete_users_form, moodle_user_get_users_by_id_form, moodle_user_update_users_form, moodleform_mod, note_edit_form, portfolio_admin_form, portfolio_export_form, portfolio_instance_select, portfolio_user_form, preview_options_form, question_category_edit_form, question_export_form, question_import_form, question_move_form, question_wizard_form, quiz_add_random_form, quiz_grading_settings, quiz_override_form, quiz_statistics_statistics_settings_form, recent_form, reject_request_form, repository_instance_form, repository_type_form, role_allow_form, role_prohibit_form, send_form, site_clean_registration_data_form, site_registration_form, site_unregistration_form, tag_edit_form, tool_customlang_filter_form, tool_qeupgradehelper_cron_setup_form, tool_qeupgradehelper_extract_options_form, user_active_filter_form, user_add_filter_form, user_bulk_action_form, user_bulk_cohortadd_form, user_bulk_form, user_edit_form, user_editadvanced_form, user_filesedit_form, user_message_form, web_service_token_form, webservice_test_client_form, workshop_assessment_form, workshop_best_evaluation_settings_form, workshop_edit_strategy_form, workshop_feedbackauthor_form, workshop_feedbackreviewer_form, workshop_random_allocator_form, and workshop_submission_form.

Public Member Functions

 moodleform ($action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true)
 focus ($name=NULL)
 _process_submission ($method)
 _validate_files (&$files)
 set_data ($default_values)
 set_upload_manager ($um=false)
 is_submitted ()
 no_submit_button_pressed ()
 is_validated ()
 validate_defined_fields ($validateonnosubmit=false)
 is_cancelled ()
 get_data ()
 get_submitted_data ()
 save_files ($destination)
 get_new_filename ($elname=null)
 save_file ($elname, $pathname, $override=false)
 save_temp_file ($elname)
 save_stored_file ($elname, $newcontextid, $newcomponent, $newfilearea, $newitemid, $newfilepath='/', $newfilename=null, $overwrite=false, $newuserid=null)
 get_file_content ($elname)
 display ()
 definition_after_data ()
 validation ($data, $files)
 repeat_elements_fix_clone ($i, $elementclone, &$namecloned)
 repeat_elements ($elementobjs, $repeats, $options, $repeathiddenname, $addfieldsname, $addfieldsno=5, $addstring=null, $addbuttoninside=false)
 add_checkbox_controller ($groupid, $text=null, $attributes=null, $originalValue=0)
 add_action_buttons ($cancel=true, $submitlabel=null)
 init_javascript_enhancement ($element, $enhancement, array $options=array(), array $strings=null)

Static Public Member Functions

static get_js_module ()

Protected Member Functions

 get_form_identifier ()
 validate_draft_files ()
 get_draft_files ($elname)
 definition ()

Protected Attributes

 $_formname
 $_form
 $_customdata
 $_definition_finalized = false

Detailed Description

Definition at line 95 of file formslib.php.


Member Function Documentation

_process_submission ( method)

Internal method. Alters submitted data to be suitable for quickforms processing. Must be called when the form is fully set up.

Parameters:
string$method

Definition at line 239 of file formslib.php.

Here is the caller graph for this function:

_validate_files ( &$  files)

Internal method. Validates all old-style deprecated uploaded files. The new way is to upload files via repository api.

object object

Parameters:
array$files
Returns:
bool|array Success or an array of errors

Definition at line 273 of file formslib.php.

add_action_buttons ( cancel = true,
submitlabel = null 
)

Use this method to a cancel and submit button to the end of your form. Pass a param of false if you don't want a cancel button in your form. If you have a cancel button make sure you check for it being pressed using is_cancelled() and redirecting if it is true before trying to get data with get_data().

Parameters:
boolean$cancelwhether to show cancel button, default true
string$submitlabellabel for submit button, defaults to get_string('savechanges')

Definition at line 1128 of file formslib.php.

add_checkbox_controller ( groupid,
text = null,
attributes = null,
originalValue = 0 
)

Adds a link/button that controls the checked state of a group of checkboxes.

object

Parameters:
int$groupidThe id of the group of advcheckboxes this element controls
string$textThe text of the link. Defaults to selectallornone ("select all/none")
array$attributesassociative array of HTML attributes
int$originalValueThe original general state of the checkboxes before the user first clicks this element

Definition at line 1060 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

definition ( ) [abstract, protected]

Abstract method - always override!

Reimplemented in mod_assignment_grading_form, repository_type_form, repository_instance_form, generator_form, mod_assignment_upload_response_form, mod_assignment_upload_notes_form, lesson_add_page_form_base, moodle_group_delete_groupmembers_form, moodle_group_add_groupmembers_form, moodle_group_get_groupmembers_form, lesson_display_answer_form_multichoice_multianswer, moodle_group_delete_groups_form, lesson_display_answer_form_matching, lesson_display_answer_form_multichoice_singleanswer, moodle_group_get_course_groups_form, mod_assignment_online_edit_form, mod_assignment_uploadsingle_response_form, moodle_group_get_groups_form, lesson_display_answer_form_truefalse, lesson_display_answer_form_shortanswer, moodle_group_create_groups_form, portfolio_instance_select, lesson_display_answer_form_numerical, lesson_display_answer_form_essay, moodle_user_get_users_by_id_form, portfolio_user_form, lesson_importppt_form, formslib_test_form, site_registration_form, moodle_user_delete_users_form, web_service_token_form, external_service_functions_form, portfolio_admin_form, feedback_edit_create_template_form, reject_request_form, question_edit_form, question_dataset_dependent_items_form, hub_selector_form, enrol_bulk_enrolment_confirm_form, moodle_user_update_users_form, course_publication_form, enrol_users_addmember_form, base_moodleform, admin_uploaduser_form2, mnet_review_host_form, site_clean_registration_data_form, role_prohibit_form, grade_import_mapping_form, question_dataset_dependent_definitions_form, block_edit_form, quiz_override_form, feedback_edit_use_template_form, mod_workshop_mod_form, external_service_form, mod_lti_edit_types_form, mod_lti_mod_form, mod_quiz_mod_form, quiz_grading_settings, workshop_edit_strategy_form, workshop_assessment_form, data_save_preset_form, filter_local_settings_form, portfolio_export_form, user_bulk_form, event_form, enrol_self_enrol_form, hub_publish_selector_form, course_request_form, login_forgot_password_form, mod_wiki_mod_form, workshop_random_allocator_form, qtype_random_edit_form, feed_edit_form, calendar_preferences_form, lesson_page_without_answers, site_unregistration_form, enrol_bulk_enrolment_change_form, essay_grading_form, mod_lesson_mod_form, gradingform_rubric_editrubric, grader_report_preferences_form, mod_quiz_preflight_check_form, quiz_add_random_form, mod_quiz_report_overview_settings, mod_quiz_report_responses_settings, question_category_edit_form, question_export_form, question_import_form, community_hub_search_form, grading_search_template_form, quiz_statistics_statistics_settings_form, question_move_form, preview_options_form, mnet_profile_form, tool_qeupgradehelper_cron_setup_form, tool_qeupgradehelper_extract_options_form, admin_uploaduser_form1, cohort_edit_form, data_export_form, mod_wiki_edit_form, mnet_simple_host_form, mnet_services_form, enrol_authorize_form, lesson_import_form, user_active_filter_form, blog_edit_external_form, blog_preferences_form, course_completion_form, key_form, key_form, role_allow_form, enrol_authorize_import_form, enrol_manual_edit_form, enrol_paypal_edit_form, enrol_self_edit_form, mod_feedback_mod_form, mod_page_mod_form, mod_resource_mod_form, tool_customlang_filter_form, external_service_authorised_user_settings_form, recent_form, enrol_guest_enrol_form, enrol_meta_addinstance_form, login_change_password_form, login_forgot_password_form, login_signup_form, mod_feedback_delete_completed_form, mod_feedback_delete_item_form, mod_feedback_delete_template_form, feedback_edit_add_question_form, feedback_import_form, mod_imscp_mod_form, mod_label_mod_form, mod_url_mod_form, workshop_best_evaluation_settings_form, workshop_feedbackauthor_form, workshop_feedbackreviewer_form, workshop_submission_form, tag_edit_form, database_export_form, database_transfer_form, enrol_cohort_addinstance_form, enrol_manual_user_enrolment_form, enrol_mnet_addinstance_form, enrol_self_user_enrolment_form, enrol_users_assign_form, mod_feedback_use_templ_form, mod_folder_edit_form, mod_folder_mod_form, mod_forum_mod_form, mod_forum_post_form, admin_uploadpicture_form, block_private_files_form, mod_wiki_create_form, user_filesedit_form, user_bulk_cohortadd_form, course_settings_form, mod_scorm_report_interactions_settings, mod_wiki_filesedit_form, moodle_user_create_users_form, edit_calculation_form, backup_files_edit_form, course_restore_form, blog_edit_form, edit_category_form, edit_item_form, edit_letter_form, import_outcomes_form, edit_grade_form, grade_import_form, mod_scorm_mod_form, edit_outcome_form, edit_scale_form, edit_outcomeitem_form, grade_export_form, grade_import_form, mod_assignment_upload_form, mod_assignment_uploadsingle_form, data_import_preset_zip_form, mod_scorm_report_settings, feedback_label_form, grouping_form, feedback_captcha_form, feedback_item_form, feedback_info_form, feedback_multichoice_form, feedback_multichoicerated_form, feedback_numeric_form, feedback_textarea_form, feedback_textfield_form, coursefiles_edit_form, group_form, mod_data_export_form, delete_category_form, autogroup_form, field_form, course_edit_form, user_edit_form, user_editadvanced_form, category_form, user_message_form, editsection_form, groups_import_form, send_form, mod_assignment_mod_form, mod_data_import_form, note_edit_form, editcategory_form, mod_chat_mod_form, mod_choice_mod_form, mod_data_mod_form, data_existing_preset_form, mod_glossary_entry_form, mod_glossary_import_form, mod_glossary_mod_form, mod_survey_mod_form, mod_wiki_comments_form, course_reset_form, user_bulk_action_form, webservice_test_client_form, and user_add_filter_form.

Here is the caller graph for this function:

Dummy stub method - override if you need to setup the form depending on current values. This method is called after definition(), data submission and set_data(). All form setup that is dependent on form values should go in here.

Reimplemented in generator_form, admin_uploaduser_form2, course_edit_form, edit_category_form, mod_workshop_mod_form, mod_lti_mod_form, edit_item_form, mod_resource_mod_form, edit_outcomeitem_form, mod_forum_mod_form, mod_glossary_mod_form, edit_grade_form, external_service_form, login_signup_form, moodleform_mod, base_moodleform, blog_edit_external_form, gradingform_rubric_editrubric, backup_confirmation_form, edit_calculation_form, feed_edit_form, edit_outcome_form, user_editadvanced_form, edit_scale_form, user_edit_form, and field_form.

Definition at line 899 of file formslib.php.

Here is the caller graph for this function:

display ( )

Print html form.

Reimplemented in base_moodleform.

Definition at line 880 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

focus ( name = NULL)

To autofocus on first form element or first element with error.

Parameters:
string$nameif this is set then the focus is forced to a field with this name
Returns:
string javascript to select form element with first error or first element if no errors. Use this as a parameter when calling print_header

Definition at line 204 of file formslib.php.

get_data ( )

Return submitted data if properly submitted or returns NULL if validation fails or if there is no submitted data.

note: $slashed param removed

Returns:
object submitted data; NULL if not valid or not submitted or cancelled

Reimplemented in mod_assignment_grading_form, mod_assignment_upload_notes_form, admin_uploaduser_form2, web_service_token_form, mod_forum_mod_form, mod_glossary_mod_form, mod_feedback_mod_form, gradingform_rubric_editrubric, mod_choice_mod_form, feed_edit_form, feedback_multichoice_form, feedback_multichoicerated_form, feedback_numeric_form, feedback_textarea_form, feedback_textfield_form, and send_form.

Definition at line 557 of file formslib.php.

Here is the caller graph for this function:

get_draft_files ( elname) [protected]

Get draft files of a form element This is a protected method which will be used only inside moodleforms

object $USER

Parameters:
string$elnamename of element
Returns:
array

Definition at line 740 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_file_content ( elname)

Get content of uploaded file.

object

Parameters:
$elementname of file upload element
Returns:
mixed false in case of failure, string if ok

Definition at line 846 of file formslib.php.

Here is the call graph for this function:

get_form_identifier ( ) [protected]

It should returns unique identifier for the form. Currently it will return class name, but in case two same forms have to be rendered on same page then override function to get unique form identifier. e.g This is used on multiple self enrollments page.

Returns:
string form identifier.

Reimplemented in enrol_self_enrol_form.

Definition at line 191 of file formslib.php.

Here is the caller graph for this function:

static get_js_module ( ) [static]

Returns a JS module definition for the mforms JS

Returns:
array

Definition at line 1191 of file formslib.php.

Here is the caller graph for this function:

get_new_filename ( elname = null)

Returns name of uploaded file.

object

Parameters:
string$elname,firstelement if null
Returns:
mixed false in case of failure, string if ok

Definition at line 615 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Return submitted data without validation or NULL if there is no submitted data. note: $slashed param removed

Returns:
object submitted data; NULL if not submitted

Definition at line 580 of file formslib.php.

init_javascript_enhancement ( element,
enhancement,
array options = array(),
array strings = null 
)

Adds an initialisation call for a standard JavaScript enhancement.

This function is designed to add an initialisation call for a JavaScript enhancement that should exist within javascript-static M.form.init_{enhancementname}.

Current options:

  • Selectboxes
    • smartselect: Turns a nbsp indented select box into a custom drop down control that supports multilevel and category selection. $enhancement = 'smartselect'; $options = array('selectablecategories' => true|false)
Since:
2.0
Parameters:
string | element$element
string$enhancement
array$options
array$strings

Definition at line 1166 of file formslib.php.

Here is the caller graph for this function:

Return true if a cancel button has been pressed resulting in the form being submitted.

Returns:
boolean true if a cancel button has been pressed

Reimplemented in base_moodleform.

Definition at line 537 of file formslib.php.

Check that form was submitted. Does not check validity of submitted data.

Returns:
bool true if form properly submitted

Definition at line 422 of file formslib.php.

Here is the caller graph for this function:

Check that form data is valid. You should almost always use this, rather than {

See also:
validate_defined_fields}

bool $validated

Returns:
bool true if form data valid

Definition at line 456 of file formslib.php.

Here is the caller graph for this function:

moodleform ( action = null,
customdata = null,
method = 'post',
target = '',
attributes = null,
editable = true 
)

The constructor function calls the abstract function definition() and it will then process and clean and attempt to validate incoming data.

It will call your custom validate method to validate data and will also check any rules you have specified in definition using addRule

The name of the form (id attribute of the form) is automatically generated depending on the name you gave the class extending moodleform. You should call your class something like

Parameters:
mixed$actionthe action attribute for the form. If empty defaults to auto detect the current url. If a moodle_url object then outputs params as hidden variables.
array$customdataif your form defintion method needs access to data such as $course $cm, etc. to construct the form definition then pass it in this array. You can use globals for somethings.
string$methodif you set this to anything other than 'post' then _GET and _POST will be merged and used as incoming data to the form.
string$targettarget frame for form submission. You will rarely use this. Don't use it if you don't need to as the target attribute is deprecated in xhtml strict.
mixed$attributesyou can pass a string of html attributes here or an array.
bool$editable
Returns:
object moodleform

Definition at line 141 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

bool $nosubmit

Definition at line 429 of file formslib.php.

repeat_elements ( elementobjs,
repeats,
options,
repeathiddenname,
addfieldsname,
addfieldsno = 5,
addstring = null,
addbuttoninside = false 
)

Method to add a repeating group of elements to a form.

Parameters:
array$elementobjsArray of elements or groups of elements that are to be repeated
integer$repeatsno of times to repeat elements initially
array$optionsArray of options to apply to elements. Array keys are element names. This is an array of arrays. The second sets of keys are the option types for the elements : 'default' - default value is value 'type' - PARAM_* constant is value 'helpbutton' - helpbutton params array is value 'disabledif' - last three moodleform::disabledIf() params are value as an array
string$repeathiddennamename for hidden element storing no of repeats in this form
string$addfieldsnamename for button to add more fields
int$addfieldsnohow many fields to add at a time
string$addstringname of button, {no} is replaced by no of blanks that will be added.
boolean$addbuttoninsideif true, don't call closeHeaderBefore($addfieldsname). Default false.
Returns:
int no of repeats of element in this page

Definition at line 962 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

repeat_elements_fix_clone ( i,
elementclone,
&$  namecloned 
)

Helper used by repeat_elements().

Parameters:
int$ithe index of this element.
HTML_QuickForm_element$elementclone
array$nameclonedarray of names

Definition at line 924 of file formslib.php.

Here is the caller graph for this function:

save_file ( elname,
pathname,
override = false 
)

Save file to standard filesystem

object

Parameters:
string$elnamename of element
string$pathnamefull path name of file
bool$overrideoverride file if exists
Returns:
bool success

Definition at line 667 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

save_files ( destination)

Save verified uploaded files into directory. Upload process can be customised from definition() NOTE: please use save_stored_file() or save_file()

Returns:
bool Always false

Definition at line 603 of file formslib.php.

save_stored_file ( elname,
newcontextid,
newcomponent,
newfilearea,
newitemid,
newfilepath = '/',
newfilename = null,
overwrite = false,
newuserid = null 
)

Save file to local filesystem pool

object

Parameters:
string$elnamename of element
int$newcontextid
string$newfilearea
string$newfilepath
string$newfilename- use specified filename, if not specified name of uploaded file used
bool$overwrite- overwrite file if exists
int$newuserid- new userid if required
Returns:
mixed stored_file object or false if error; may throw exception if duplicate found

Definition at line 778 of file formslib.php.

Here is the call graph for this function:

save_temp_file ( elname)

Returns a temporary file, do not forget to delete after not needed any more.

Parameters:
string$elname
Returns:
string or false

Definition at line 713 of file formslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

set_data ( default_values)

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).

note: $slashed param removed

Parameters:
mixed$default_valuesobject or array of default values

Reimplemented in mod_assignment_grading_form, mod_assignment_upload_notes_form, question_edit_form, mod_scorm_mod_form, moodleform_mod, question_dataset_dependent_items_form, qtype_multianswer_edit_form, block_edit_form, feedback_multichoicerated_form, feedback_multichoice_form, qtype_random_edit_form, qtype_missingtype_edit_form, block_html_edit_form, and send_form.

Definition at line 403 of file formslib.php.

Here is the caller graph for this function:

set_upload_manager ( um = false)
Deprecated:

Definition at line 413 of file formslib.php.

validate_defined_fields ( validateonnosubmit = false)

Validate the form.

You almost always want to call {

See also:
is_validated} instead of this because it calls {
definition_after_data} first, before validating the form, which is what you want in 99% of cases.

This is provided as a separate function for those special cases where you want the form validated before definition_after_data is called for example, to selectively add new elements depending on a no_submit_button press, but only when the form is valid when the no_submit_button is pressed,

Parameters:
boolean$validateonnosubmitoptional, defaults to false. The default behaviour is NOT to validate the form when a no submit button has been pressed. pass true here to override this behaviour
Returns:
bool true if form data valid

Definition at line 484 of file formslib.php.

validate_draft_files ( ) [protected]

Internal method. Validates filepicker and filemanager files if they are set as required fields. Also, sets the error message if encountered one.

Returns:
bool/array with errors

Definition at line 363 of file formslib.php.

validation ( data,
files 
)

Dummy stub method - override if you needed to perform some extra validation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.

Server side rules do not work for uploaded files, implement serverside rules here if needed.

Parameters:
array$dataarray of ("fieldname"=>value) of submitted data
array$filesarray of uploaded files "element_name"=>tmp_file_path
Returns:
array of "element_name"=>"error_description" if there are errors, or an empty array if everything is OK (true allowed for backwards compatibility too).

Reimplemented in question_edit_form, qtype_calculatedsimple_edit_form, question_dataset_dependent_items_form, mod_quiz_mod_form, edit_category_form, qtype_multianswer_edit_form, course_publication_form, admin_uploaduser_form2, course_edit_form, mod_lesson_mod_form, mod_scorm_mod_form, edit_item_form, community_hub_search_form, moodleform_mod, qtype_numerical_edit_form, edit_outcomeitem_form, qtype_calculatedmulti_edit_form, course_completion_form, mod_feedback_mod_form, quiz_override_form, enrol_authorize_form, grader_report_preferences_form, qtype_calculated_edit_form, mod_resource_mod_form, mod_forum_post_form, mod_url_mod_form, hub_selector_form, question_dataset_dependent_definitions_form, event_form, user_editadvanced_form, question_import_form, external_service_form, delete_category_form, edit_outcome_form, blog_edit_form, login_signup_form, enrol_self_edit_form, mod_choice_mod_form, user_edit_form, mod_assignment_mod_form, gradingform_rubric_editrubric, autogroup_form, qtype_match_edit_form, edit_scale_form, qtype_multichoice_edit_form, mod_glossary_entry_form, lesson_import_form, enrol_paypal_edit_form, enrol_self_enrol_form, backup_confirmation_form, course_request_form, quiz_add_random_form, feed_edit_form, edit_calculation_form, grade_import_form, qtype_random_edit_form, enrol_meta_addinstance_form, workshop_submission_form, login_change_password_form, qtype_missingtype_edit_form, blog_edit_external_form, enrol_manual_user_enrolment_form, enrol_self_user_enrolment_form, workshop_feedbackreviewer_form, workshop_feedbackauthor_form, mod_imscp_mod_form, qtype_randomsamatch_edit_form, cohort_edit_form, qtype_shortanswer_edit_form, editcategory_form, mod_quiz_preflight_check_form, enrol_guest_enrol_form, group_form, login_forgot_password_form, field_form, grouping_form, user_filesedit_form, workshop_rubric_assessment_form, and category_form.

Definition at line 914 of file formslib.php.


Field Documentation

$_customdata [protected]

Definition at line 109 of file formslib.php.

$_definition_finalized = false [protected]

Definition at line 114 of file formslib.php.

$_form [protected]

Definition at line 103 of file formslib.php.

$_formname [protected]

Definition at line 97 of file formslib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations