Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 7 |
CRAP | |
0.00% |
0 / 1 |
| provider | |
0.00% |
0 / 7 |
|
0.00% |
0 / 7 |
56 | |
0.00% |
0 / 1 |
| get_metadata | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_contexts_for_userid | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_users_in_context | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| export_user_data | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| delete_data_for_all_users_in_context | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| delete_data_for_user | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| delete_data_for_users | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | // This file is part of Moodle - https://moodle.org/ |
| 3 | // |
| 4 | // Moodle is free software: you can redistribute it and/or modify |
| 5 | // it under the terms of the GNU General Public License as published by |
| 6 | // the Free Software Foundation, either version 3 of the License, or |
| 7 | // (at your option) any later version. |
| 8 | // |
| 9 | // Moodle is distributed in the hope that it will be useful, |
| 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | // GNU General Public License for more details. |
| 13 | // |
| 14 | // You should have received a copy of the GNU General Public License |
| 15 | // along with Moodle. If not, see <https://www.gnu.org/licenses/>. |
| 16 | |
| 17 | namespace search_meilisearch\privacy; |
| 18 | |
| 19 | use core_privacy\local\metadata\collection; |
| 20 | use core_privacy\local\request\approved_contextlist; |
| 21 | use core_privacy\local\request\approved_userlist; |
| 22 | use core_privacy\local\request\contextlist; |
| 23 | use core_privacy\local\request\userlist; |
| 24 | |
| 25 | /** |
| 26 | * Sends indexed content to Meilisearch and stores nothing itself, like core's Solr engine. |
| 27 | * |
| 28 | * @package search_meilisearch |
| 29 | * @copyright 2026 DevLMS |
| 30 | * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| 31 | */ |
| 32 | class provider implements |
| 33 | \core_privacy\local\metadata\provider, |
| 34 | \core_privacy\local\request\core_userlist_provider, |
| 35 | \core_privacy\local\request\plugin\provider { |
| 36 | /** |
| 37 | * Data sent out. |
| 38 | * |
| 39 | * @param collection $collection |
| 40 | * @return collection |
| 41 | */ |
| 42 | public static function get_metadata(collection $collection): collection { |
| 43 | return $collection->add_external_location_link('meilisearch', ['data' => 'privacy:metadata:data'], 'privacy:metadata'); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * No local data. |
| 48 | * |
| 49 | * @param int $userid |
| 50 | * @return contextlist |
| 51 | */ |
| 52 | public static function get_contexts_for_userid(int $userid): contextlist { |
| 53 | return new contextlist(); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * No local data. |
| 58 | * |
| 59 | * @param userlist $userlist |
| 60 | */ |
| 61 | public static function get_users_in_context(userlist $userlist) { |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * No local data. |
| 66 | * |
| 67 | * @param approved_contextlist $contextlist |
| 68 | */ |
| 69 | public static function export_user_data(approved_contextlist $contextlist) { |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * No local data. |
| 74 | * |
| 75 | * @param \context $context |
| 76 | */ |
| 77 | public static function delete_data_for_all_users_in_context(\context $context) { |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * No local data. |
| 82 | * |
| 83 | * @param approved_contextlist $contextlist |
| 84 | */ |
| 85 | public static function delete_data_for_user(approved_contextlist $contextlist) { |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * No local data. |
| 90 | * |
| 91 | * @param approved_userlist $userlist |
| 92 | */ |
| 93 | public static function delete_data_for_users(approved_userlist $userlist) { |
| 94 | } |
| 95 | } |