Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tool_dataprivacy\form\context_instance Class Reference

Context instance data form. More...

Inheritance diagram for tool_dataprivacy\form\context_instance:

Public Member Functions

 definition ()
 Define the form - called by parent constructor.
 

Static Public Member Functions

static get_context_instance_customdata (\context $context)
 Returns the customdata array for the provided context instance.
 

Protected Member Functions

 add_purpose_category ($contextlevel=false)
 Adds purpose and category selectors.
 

Static Protected Member Functions

static get_retention_display_text (purpose $effectivepurpose, $retentioncontextlevel, context $context)
 Returns the purpose display text.
 

Static Protected Attributes

static The $persistentclass = 'tool_dataprivacy\\context_instance'
 persistent class.
 

Detailed Description

Context instance data form.

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

Member Function Documentation

◆ add_purpose_category()

tool_dataprivacy\form\context_instance::add_purpose_category ( $contextlevel = false)
protected

Adds purpose and category selectors.

Parameters
int$contextlevelApply this context level defaults. False for no defaults.
Return values
null

◆ get_context_instance_customdata()

static tool_dataprivacy\form\context_instance::get_context_instance_customdata ( \context $context)
static

Returns the customdata array for the provided context instance.

Parameters
context$context
Return values
array

◆ get_retention_display_text()

static tool_dataprivacy\form\context_instance::get_retention_display_text ( purpose $effectivepurpose,
$retentioncontextlevel,
context $context )
staticprotected

Returns the purpose display text.

Parameters
purpose$effectivepurpose
int$retentioncontextlevel
context$contextThe context, just for displaying (filters) purposes.
Return values
string

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