MDL-61899 tool_dataprivacy: Add lawful bases fields
[moodle.git] / admin / tool / dataprivacy / datarequests.php
blobd2d9123e0826f930746298dc1181c225d0d31ed8
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
4 // Moodle is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17 /**
18 * Prints the contact form to the site's Data Protection Officer
20 * @copyright 2018 onwards Jun Pataleta
21 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
22 * @package tool_dataprivacy
25 require_once("../../../config.php");
26 require_once('lib.php');
28 $url = new moodle_url('/admin/tool/dataprivacy/datarequests.php');
30 $title = get_string('datarequests', 'tool_dataprivacy');
32 \tool_dataprivacy\page_helper::setup($url, $title, '', 'tool/dataprivacy:managedatarequests');
34 echo $OUTPUT->header();
35 echo $OUTPUT->heading($title);
37 $requests = tool_dataprivacy\api::get_data_requests();
38 $requestlist = new tool_dataprivacy\output\data_requests_page($requests);
39 $requestlistoutput = $PAGE->get_renderer('tool_dataprivacy');
40 echo $requestlistoutput->render($requestlist);
42 echo $OUTPUT->footer();