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.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403]

prints the forms to choose an item-typ to create items and to choose a template to use

Author: Andreas Grabs
License: http://www.gnu.org/copyleft/gpl.html GNU Public License
File Size: 288 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

feedback_edit_use_template_form:: (6 methods):
  __construct()
  get_js_module()
  mock_ajax_submit()
  mock_generate_submit_keys()
  mock_submit()
  definition()

feedback_edit_create_template_form:: (7 methods):
  __construct()
  get_js_module()
  mock_ajax_submit()
  mock_generate_submit_keys()
  mock_submit()
  definition()
  validation()


Class: feedback_edit_use_template_form  - X-Ref

The feedback_edit_use_template_form

__construct($action = null, $customdata = null, $method = 'post', $target = '',$attributes = null, $editable = true, $ajaxformdata = null)   X-Ref
No description

get_js_module()   X-Ref
Overrides parent static method for deprecation purposes.

return: array

mock_ajax_submit($simulatedsubmitteddata, $simulatedsubmittedfiles = array()   X-Ref
Overrides parent static method for deprecation purposes.

param: array $simulatedsubmitteddata
param: array $simulatedsubmittedfiles
param: string $method
param: null $formidentifier
return: array

mock_generate_submit_keys($data = [])   X-Ref
Overrides parent static method for deprecation purposes.

param: array $data
return: array

mock_submit($simulatedsubmitteddata, $simulatedsubmittedfiles = array()   X-Ref
Overrides parent static method for deprecation purposes.

param: array $simulatedsubmitteddata
param: array $simulatedsubmittedfiles
param: string $method
param: null $formidentifier

definition()   X-Ref
Form definition


Class: feedback_edit_create_template_form  - X-Ref

The feedback_edit_create_template_form

__construct($action = null, $customdata = null, $method = 'post',$target = '', $attributes = null, $editable = true, $ajaxformdata = null)   X-Ref
No description

get_js_module()   X-Ref
Overrides parent static method for deprecation purposes.

return: array

mock_ajax_submit($simulatedsubmitteddata, $simulatedsubmittedfiles = array()   X-Ref
Overrides parent static method for deprecation purposes.

param: array $simulatedsubmitteddata
param: array $simulatedsubmittedfiles
param: string $method
param: null $formidentifier
return: array

mock_generate_submit_keys($data = [])   X-Ref
Overrides parent static method for deprecation purposes.

param: array $data
return: array

mock_submit($simulatedsubmitteddata, $simulatedsubmittedfiles = array()   X-Ref
Overrides parent static method for deprecation purposes.

param: array $simulatedsubmitteddata
param: array $simulatedsubmittedfiles
param: string $method
param: null $formidentifier

definition()   X-Ref
Form definition


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

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