. /** * Prints the compliance data registry main page. * * @copyright 2018 onwards Adrian Greeve * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @package tool_dataprivacy */ require_once(__DIR__ . '/../../../config.php'); require_once($CFG->dirroot . '/' . $CFG->admin . '/tool/dataprivacy/lib.php'); $url = new moodle_url('/' . $CFG->admin . '/tool/dataprivacy/summary.php'); $title = get_string('summary', 'tool_dataprivacy'); $context = \context_system::instance(); $PAGE->set_url($url); $PAGE->set_context($context); $PAGE->set_title($title); $PAGE->set_heading($SITE->fullname); $output = $PAGE->get_renderer('tool_dataprivacy'); echo $output->header(); $summarypage = new \tool_dataprivacy\output\summary_page(); echo $output->render($summarypage); echo $output->footer();