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] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

(no description)

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

Defines 1 class

core_completion_defaultedit_form:: (5 methods):
  __construct()
  get_module_names()
  get_module_form()
  definition()
  get_form_identifier()


Class: core_completion_defaultedit_form  - X-Ref

Default activity completion form

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

get_module_names()   X-Ref
Returns list of types of selected modules

return: array modname=>modfullname

get_module_form()   X-Ref
Returns an instance of component-specific module form for the first selected module

return: moodleform_mod|null

definition()   X-Ref
Form definition,


get_form_identifier()   X-Ref
This method has been overridden because the form identifier must be unique for each module type.
Otherwise, the form will display the same data for each module type once it's submitted.