28
28
use \core_privacy \local \request \userlist ;
29
29
use \core_privacy \local \metadata \collection ;
30
30
31
- defined ('MOODLE_INTERNAL ' ) || die ();
32
-
33
31
/**
34
32
* Privacy Subsystem implementation for H5P.
35
33
*/
@@ -49,7 +47,7 @@ class provider implements
49
47
*
50
48
* @return collection The array of metadata
51
49
*/
52
- public static function _get_metadata (collection $ items ) {
50
+ public static function get_metadata (collection $ items ): collection {
53
51
// Stores files using the Moodle file api.
54
52
$ items ->add_subsystem_link (
55
53
'core_files ' ,
@@ -117,7 +115,7 @@ public static function _get_metadata(collection $items) {
117
115
*
118
116
* @return contextlist $contextlist The contextlist containing the list of contexts used in this plugin.
119
117
*/
120
- public static function _get_contexts_for_userid ($ userid ) {
118
+ public static function get_contexts_for_userid ($ userid ): contextlist {
121
119
$ contextlist = new contextlist ();
122
120
123
121
// Context for content_user_data.
@@ -176,7 +174,7 @@ public static function _get_contexts_for_userid($userid) {
176
174
*
177
175
* @param approved_contextlist $contextlist The approved contexts to export information for.
178
176
*/
179
- public static function _export_user_data (approved_contextlist $ contextlist ) {
177
+ public static function export_user_data (approved_contextlist $ contextlist ) {
180
178
global $ DB ;
181
179
182
180
if (!count ($ contextlist )) {
@@ -379,7 +377,7 @@ protected static function get_exportable_events($userid) {
379
377
*
380
378
* @param \context $context The specific context to delete data for.
381
379
*/
382
- public static function _delete_data_for_all_users_in_context (\context $ context ) {
380
+ public static function delete_data_for_all_users_in_context (\context $ context ) {
383
381
global $ DB ;
384
382
385
383
if ($ context ->contextlevel == CONTEXT_USER ) {
@@ -411,7 +409,7 @@ public static function _delete_data_for_all_users_in_context(\context $context)
411
409
*
412
410
* @param approved_contextlist $contextlist The approved contexts and user information to delete information for.
413
411
*/
414
- public static function _delete_data_for_user (approved_contextlist $ contextlist ) {
412
+ public static function delete_data_for_user (approved_contextlist $ contextlist ) {
415
413
global $ DB ;
416
414
417
415
$ count = $ contextlist ->count ();
0 commit comments