diff --git a/webservice/rest/classes/privacy/provider.php b/webservice/rest/classes/privacy/provider.php new file mode 100644 index 00000000000..efbe5c0fabe --- /dev/null +++ b/webservice/rest/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy provider implementation for webservice_rest. + * + * @package webservice_rest + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace webservice_rest\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for webservice_rest. + * + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/webservice/rest/lang/en/webservice_rest.php b/webservice/rest/lang/en/webservice_rest.php index dfe42f2b7bf..c8fcbfc5c65 100644 --- a/webservice/rest/lang/en/webservice_rest.php +++ b/webservice/rest/lang/en/webservice_rest.php @@ -25,4 +25,5 @@ */ $string['pluginname'] = 'REST protocol'; +$string['privacy:metadata'] = 'The REST protocol plugin does not store any personal data.'; $string['rest:use'] = 'Use REST protocol'; diff --git a/webservice/soap/classes/privacy/provider.php b/webservice/soap/classes/privacy/provider.php new file mode 100644 index 00000000000..e27bbbc43e7 --- /dev/null +++ b/webservice/soap/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy provider implementation for webservice_soap. + * + * @package webservice_soap + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace webservice_soap\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for webservice_soap. + * + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/webservice/soap/lang/en/webservice_soap.php b/webservice/soap/lang/en/webservice_soap.php index 403f6db7ae4..5a2ef9b6e5a 100644 --- a/webservice/soap/lang/en/webservice_soap.php +++ b/webservice/soap/lang/en/webservice_soap.php @@ -25,4 +25,5 @@ */ $string['pluginname'] = 'SOAP protocol'; +$string['privacy:metadata'] = 'The SOAP protocol plugin does not store any personal data.'; $string['soap:use'] = 'Use SOAP protocol'; diff --git a/webservice/xmlrpc/classes/privacy/provider.php b/webservice/xmlrpc/classes/privacy/provider.php new file mode 100644 index 00000000000..aeb67addf4b --- /dev/null +++ b/webservice/xmlrpc/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy provider implementation for webservice_xmlrpc. + * + * @package webservice_xmlrpc + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace webservice_xmlrpc\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for webservice_xmlrpc. + * + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/webservice/xmlrpc/lang/en/webservice_xmlrpc.php b/webservice/xmlrpc/lang/en/webservice_xmlrpc.php index b5431ba1db8..bd0fe747892 100644 --- a/webservice/xmlrpc/lang/en/webservice_xmlrpc.php +++ b/webservice/xmlrpc/lang/en/webservice_xmlrpc.php @@ -25,4 +25,5 @@ */ $string['pluginname'] = 'XML-RPC protocol'; +$string['privacy:metadata'] = 'The XML-RPC protocol plugin does not store any personal data.'; $string['xmlrpc:use'] = 'Use XML-RPC protocol';