Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tool_dataprivacy_data_request_form Class Reference

The contact form to the site's Data Protection Officer. More...

Inheritance diagram for tool_dataprivacy_data_request_form:

Public Member Functions

 definition ()
 Form definition.
 
 extra_validation ($data, $files, array &$errors)
 Form validation.
 

Protected Member Functions

 get_default_data ()
 Get the default data.
 

Protected Attributes

bool $manage = false
 Flag to indicate whether this form is being rendered for managing data requests or for regular requests.
 

Static Protected Attributes

static string $persistentclass = data_request::class
 Name of the persistent class.
 

Detailed Description

The contact form to the site's Data Protection Officer.

License
http://www.gnu.org/copyleft/gpl.html GNU Public License

Member Function Documentation

◆ definition()

tool_dataprivacy_data_request_form::definition ( )

Form definition.

Exceptions
coding_exception
dml_exception

◆ extra_validation()

tool_dataprivacy_data_request_form::extra_validation ( $data,
$files,
array & $errors )

Form validation.

Parameters
stdClass$data
array$files
array$errors
Return values
array
Exceptions
coding_exception
dml_exception

◆ get_default_data()

tool_dataprivacy_data_request_form::get_default_data ( )
protected

Get the default data.

Unset the default userid if managing data requests

Return values
stdClass

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