Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 120 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: use_template_form  - X-Ref

Prints the confirm use template form

definition()   X-Ref
Define the form


get_context_for_dynamic_submission()   X-Ref
Returns context where this form is used

return: context

check_access_for_dynamic_submission()   X-Ref
Checks if current user has access to this form, otherwise throws exception


process_dynamic_submission()   X-Ref
Process the form submission, used if form was submitted via AJAX

return: array Returns the following information

set_data_for_dynamic_submission()   X-Ref
Load in existing data as form defaults


get_page_url_for_dynamic_submission()   X-Ref
Returns url to set in $PAGE->set_url() when form is being rendered or submitted via AJAX

return: moodle_url