Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_payment\form\account_gateway Class Reference

Class account_gateway. More...

Inheritance diagram for core_payment\form\account_gateway:

Public Member Functions

 definition ()
 Define the form - called by parent constructor.
 
 get_data ()
 Overwrite parent method to json encode config.
 
 get_gateway_persistent ()
 Exposes the protected attribute to be accessed by the core_payment\gateway callback.
 
 get_mform ()
 Exposes the protected attribute to be accessed by the core_payment\gateway callback.
 
 set_data ($values)
 Overwrite parent method to json decode config.
 

Protected Member Functions

 extra_validation ($data, $files, array &$errors)
 Form validation.
 
 filter_data_for_persistent ($data)
 Filter out the foreign fields of the persistent.
 

Static Protected Attributes

static $fieldstoremove = ['accountname', 'gatewayname', 'submitbutton']
 
static string $persistentclass = core_payment\account_gateway::class
 The persistent class.
 

Detailed Description

Class account_gateway.

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

Member Function Documentation

◆ extra_validation()

core_payment\form\account_gateway::extra_validation ( $data,
$files,
array & $errors )
protected

Form validation.

Parameters
stdClass$data
array$files
array$errors

◆ filter_data_for_persistent()

core_payment\form\account_gateway::filter_data_for_persistent ( $data)
protected

Filter out the foreign fields of the persistent.

This can be overridden to filter out more complex fields.

Parameters
stdClass$dataThe data to filter the fields out of.
Return values
stdClass.

◆ get_data()

core_payment\form\account_gateway::get_data ( )

Overwrite parent method to json encode config.

Return values
object|stdClass|null
Exceptions
coding_exception

◆ get_gateway_persistent()

core_payment\form\account_gateway::get_gateway_persistent ( )

Exposes the protected attribute to be accessed by the core_payment\gateway callback.

Return values
core_payment\account_gateway

◆ get_mform()

core_payment\form\account_gateway::get_mform ( )

Exposes the protected attribute to be accessed by the core_payment\gateway callback.

Return values
MoodleQuickForm

◆ set_data()

core_payment\form\account_gateway::set_data ( $values)

Overwrite parent method to json decode config.

Parameters
array | stdClass$values

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