Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

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

Defines 1 class


Class: audience  - X-Ref

Dynamic audience form

get_audience()   X-Ref
Audience we work with

return: base

definition()   X-Ref
Form definition.


validation($data, $files)   X-Ref
Form validation.

return: array of "element_name"=>"error_description" if there are errors,
param: array $data array of ("fieldname"=>value) of submitted data
param: array $files array of uploaded files "element_name"=>tmp_file_path

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

return: context

check_access_for_dynamic_submission()   X-Ref
Ensure current user is able to use this form

A {@see \core_reportbuilder\report_access_exception} will be thrown if they can't

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


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


get_page_url_for_dynamic_submission()   X-Ref
Page url

return: moodle_url