Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core_communication\form_provider Interface Reference

Interface form_provider to manage communication provider form options from provider plugins. More...

Inheritance diagram for core_communication\form_provider:

Public Member Functions

 save_form_data (\stdClass $instance)
 Set the form data to the instance if any data is available.
 
 set_form_data (\stdClass $instance)
 Set the form data to the instance if any data is available.
 

Static Public Member Functions

static set_form_definition (\MoodleQuickForm $mform)
 Set the form definitions.
 

Detailed Description

Interface form_provider to manage communication provider form options from provider plugins.

Every provider plugin should implement this class to return the implemented form elements for custom data.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ save_form_data()

core_communication\form_provider::save_form_data ( \stdClass $instance)

Set the form data to the instance if any data is available.

Parameters
stdClass$instanceThe actual instance to set the data

Implemented in communication_customlink\communication_feature, and communication_matrix\communication_feature.

◆ set_form_data()

core_communication\form_provider::set_form_data ( \stdClass $instance)

Set the form data to the instance if any data is available.

Parameters
stdClass$instanceThe actual instance to set the data

Implemented in communication_customlink\communication_feature, and communication_matrix\communication_feature.

◆ set_form_definition()

static core_communication\form_provider::set_form_definition ( \MoodleQuickForm $mform)
static

Set the form definitions.

Parameters
MoodleQuickForm$mformThe form object

Implemented in communication_customlink\communication_feature, and communication_matrix\communication_feature.


The documentation for this interface was generated from the following file: