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: 90 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

global_form_manager:: (5 methods):
  __construct()
  definition()
  definition_after_data()
  validation()
  submit()


Class: global_form_manager  - X-Ref

MFA login form

__construct()   X-Ref
Create an instance of this class.


definition(\MoodleQuickForm &$mform)   X-Ref
Hook point for global auth form action hooks.

param: \MoodleQuickForm $mform Form to inject global elements into.
return: void

definition_after_data(\MoodleQuickForm &$mform)   X-Ref
Hook point for global auth form action hooks.

param: \MoodleQuickForm $mform Form to inject global elements into.
return: void

validation(array $data, array $files)   X-Ref
Hook point for global auth form action hooks.

param: array $data Data from the form.
param: array $files Files form the form.
return: array of errors from validation.

submit(\stdClass $data)   X-Ref
Hook point for global auth form submission hooks.

param: \stdClass $data Data from the form.
return: void