diff --git a/lib/mlbackend/php/classes/privacy/provider.php b/lib/mlbackend/php/classes/privacy/provider.php new file mode 100644 index 00000000000..d32fc8187c4 --- /dev/null +++ b/lib/mlbackend/php/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for mlbackend_php. + * + * @package mlbackend_php + * @copyright 2018 David Monllao + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace mlbackend_php\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for mlbackend_php implementing null_provider. + * + * @copyright 2018 David Monllao + * @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/lib/mlbackend/php/lang/en/mlbackend_php.php b/lib/mlbackend/php/lang/en/mlbackend_php.php index 6f46b441ea4..ab8544128ef 100644 --- a/lib/mlbackend/php/lang/en/mlbackend_php.php +++ b/lib/mlbackend/php/lang/en/mlbackend_php.php @@ -29,3 +29,4 @@ $string['errornotenoughdata'] = 'There is not enough data to evaluate this model $string['errornotenoughdatadev'] = 'The evaluation results varied too much. It is recommended that more data is gathered to ensure the model is valid. Evaluation results standard deviation = {$a->deviation}, maximum recommended standard deviation = {$a->accepteddeviation}'; $string['errorphp7required'] = 'The PHP machine learning backend requires PHP 7'; $string['pluginname'] = 'PHP machine learning backend'; +$string['privacy:metadata'] = 'The PHP machine learning backend plugin does not store any personal data.'; diff --git a/lib/mlbackend/python/classes/privacy/provider.php b/lib/mlbackend/python/classes/privacy/provider.php new file mode 100644 index 00000000000..c223bd1db44 --- /dev/null +++ b/lib/mlbackend/python/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for mlbackend_python. + * + * @package mlbackend_python + * @copyright 2018 David Monllao + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace mlbackend_python\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for mlbackend_python implementing null_provider. + * + * @copyright 2018 David Monllao + * @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/lib/mlbackend/python/lang/en/mlbackend_python.php b/lib/mlbackend/python/lang/en/mlbackend_python.php index a3baa85bea3..1a1bb4f4bc7 100644 --- a/lib/mlbackend/python/lang/en/mlbackend_python.php +++ b/lib/mlbackend/python/lang/en/mlbackend_python.php @@ -24,5 +24,6 @@ $string['packageinstalledshouldbe'] = '"moodlemlbackend" python package should be updated. The required version is "{$a->required}" and the installed version is "{$a->installed}"'; $string['pluginname'] = 'Python machine learning backend'; +$string['privacy:metadata'] = 'The Python machine learning backend plugin does not store any personal data.'; $string['pythonpackagenotinstalled'] = '"moodlemlbackend" python package is not installed or there is a problem with it. Please execute "{$a}" from command line interface for more info'; $string['pythonpathnotdefined'] = 'The path to your executable Python binary has not been defined. Please visit "{$a}" to set it.';