-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGdprInterface.php
55 lines (48 loc) · 1.16 KB
/
GdprInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* * GDPR interface
*
* @package GDPR Interface
* @author gdprwp.com
*/
interface GdprInterface {
/**
* Returns the version of the used gdpr interface. Currently is it 1.0.0
*
* @return int $version_number
*/
public function get_gdpr_version();
/**
* Data Portability
* Returns an array of userdata given an user id
*
* @var string $email
* @return array $userdata
*/
public function read_userdata( $user_email );
/**
* The Right to be Forgotten
* Completely deletes and/or anonymises a user, including
* all personal and sensitive information given an user id
*
* @var string $email
* @return array $deleted_data
*/
public function delete_userdata( $user_email );
/**
* Anonymize is also a way to forget a user, but still keep the userdata for statistics ect.
* It ca be done, by hashing sentitive data.
* Read more about what sentensive data is here http://gdprwp.com/
*
* @var string $email
* @return array $anonymize_data
*/
public function anonymize_userdata( $user_email );
/**
* Returns a string containing the privacy policy for the
* plugin.
*
* @return string
*/
public function policy();
}