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.

Configure communication for a given instance - the form definition.

Copyright: 2023 David Woloszyn <david.woloszyn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 140 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

configure_form:: (3 methods):
  __construct()
  definition()
  set_form_definition_for_provider()


Class: configure_form  - X-Ref

Defines the configure communication form.

__construct(context $context,?int $instanceid = null,?string $instancetype = null,?string $component = null,?string $selectedcommunication = null,?stdClass $instancedata = null,)   X-Ref
Class constructor

param: context $context Context object
param: int|null $instanceid Instance ID
param: string|null $instancetype Instance type
param: string|null $component Component name
param: string|null $selectedcommunication Selected communication service (provider)
param: stdClass|null $instancedata Instance data

definition()   X-Ref
Defines the form fields.


set_form_definition_for_provider()   X-Ref
Defines the requested/current provider

Get the selected communication service (provider),
and then use it to show the provider form fields.