Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
tool_dataprivacy\output\request_filter Class Reference

Class containing the filter options data for rendering the autocomplete element for the data requests page. More...

Inheritance diagram for tool_dataprivacy\output\request_filter:
renderable templatable

Public Member Functions

 __construct ($filteroptions, $selectedoptions, $baseurl=null)
 request_filter constructor.
 
 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template.
 

Protected Attributes

moodle_url string $baseurl
 $baseurl The url with params needed to call up this page.
 
array $filteroptions
 $filteroptions The filter options.
 
array $selectedoptions
 $selectedoptions The list of selected filter option values.
 

Detailed Description

Class containing the filter options data for rendering the autocomplete element for the data requests page.

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

Constructor & Destructor Documentation

◆ __construct()

tool_dataprivacy\output\request_filter::__construct ( $filteroptions,
$selectedoptions,
$baseurl = null )

request_filter constructor.

Parameters
array$filteroptionsThe filter options.
array$selectedoptionsThe list of selected filter option values.
string | moodle_url$baseurlThe url with params needed to call up this page.

Member Function Documentation

◆ export_for_template()

tool_dataprivacy\output\request_filter::export_for_template ( renderer_base $output)

Function to export the renderer data in a format that is suitable for a mustache template.

Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
stdClass|array

Implements templatable.


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