MDL-61899 tool_dataprivacy: Fixes during integration review

* Disable tool by default.
* Add format columns for 'comments' and 'dpocomment' fields in
tool_dataprivacy_request table.
* Use data request exporter when sending email notification to DPO
This commit is contained in:
Jun Pataleta
2018-04-18 18:23:13 +02:00
committed by Eloy Lafuente (stronk7)
parent bb4030ff27
commit ba5b59c0af
6 changed files with 67 additions and 29 deletions
@@ -56,6 +56,16 @@ class data_request extends persistent {
'type' => PARAM_TEXT,
'default' => ''
],
'commentsformat' => [
'choices' => [
FORMAT_HTML,
FORMAT_MOODLE,
FORMAT_PLAIN,
FORMAT_MARKDOWN
],
'type' => PARAM_INT,
'default' => FORMAT_PLAIN
],
'userid' => [
'default' => 0,
'type' => PARAM_INT
@@ -88,6 +98,16 @@ class data_request extends persistent {
'type' => PARAM_TEXT,
'null' => NULL_ALLOWED
],
'dpocommentformat' => [
'choices' => [
FORMAT_HTML,
FORMAT_MOODLE,
FORMAT_PLAIN,
FORMAT_MARKDOWN
],
'type' => PARAM_INT,
'default' => FORMAT_PLAIN
],
];
}
}