public function render_purposes(purposes $page) {
        $data = $page->export_for_template($this);
        return parent::render_from_template('tool_dataprivacy/purposes', $data);
    }
public function render_purposes(purposes $page) {
        $data = $page->export_for_template($this);
        return parent::render_from_template('tool_dataprivacy/purposes', $data);
    }
public function render_purposes ( purposes $ page ) { $ data = $ page -> export_for_template ( $ this ) ; return parent :: render_from_template ( 'tool_dataprivacy/purposes' , $ data ) ; }
Render the purposes management page.

@param purposes $page
@return string html for the page
@throws moodle_exception
Render the purposes management page .