Moodle  2.2.1
http://www.collinsharper.com
backup_anonymizer_helper Class Reference

Static Public Member Functions

static process_user_auth ($value)
static process_user_username ($value)
static process_user_idnumber ($value)
static process_user_firstname ($value)
static process_user_lastname ($value)
static process_user_email ($value)
static process_user_icq ($value)
static process_user_skype ($value)
static process_user_yahoo ($value)
static process_user_aim ($value)
static process_user_msn ($value)
static process_user_phone1 ($value)
static process_user_phone2 ($value)
static process_user_institution ($value)
static process_user_department ($value)
static process_user_address ($value)
static process_user_city ($value)
static process_user_country ($value)
static process_user_lastip ($value)
static process_user_picture ($value)
static process_user_url ($value)
static process_user_description ($value)
static process_user_descriptionformat ($value)
static process_user_imagealt ($value)

Detailed Description

Helper class for anonymization of data

This functions includes a collection of methods that are invoked from the backup process when anonymization services have been requested.

The name of each method must be "process_parentname_name", as defined byt the final element class, where parentname is the name ob the parent tag and name the name of the tag contents to be anonymized (i.e. process_user_username) with one param being the value to anonymize.

Note: current implementation of anonymization is pretty simple, just some sequential values are used. If we want more elaborated generation, it can be replaced later (using generators or wathever). Don't forget we must ensure some fields (username, idnumber, email) are unique always.

TODO: Improve to use more advanced anonymization

TODO: Finish phpdocs

Definition at line 47 of file backup_anonymizer_helper.class.php.


Member Function Documentation

static process_user_address ( value) [static]

Definition at line 117 of file backup_anonymizer_helper.class.php.

static process_user_aim ( value) [static]

Definition at line 93 of file backup_anonymizer_helper.class.php.

static process_user_auth ( value) [static]

Definition at line 49 of file backup_anonymizer_helper.class.php.

static process_user_city ( value) [static]

Definition at line 121 of file backup_anonymizer_helper.class.php.

static process_user_country ( value) [static]

Definition at line 125 of file backup_anonymizer_helper.class.php.

static process_user_department ( value) [static]

Definition at line 113 of file backup_anonymizer_helper.class.php.

static process_user_description ( value) [static]

Definition at line 141 of file backup_anonymizer_helper.class.php.

static process_user_descriptionformat ( value) [static]

Definition at line 145 of file backup_anonymizer_helper.class.php.

static process_user_email ( value) [static]

Definition at line 75 of file backup_anonymizer_helper.class.php.

static process_user_firstname ( value) [static]

Definition at line 63 of file backup_anonymizer_helper.class.php.

static process_user_icq ( value) [static]

Definition at line 81 of file backup_anonymizer_helper.class.php.

static process_user_idnumber ( value) [static]

Definition at line 59 of file backup_anonymizer_helper.class.php.

static process_user_imagealt ( value) [static]

Definition at line 149 of file backup_anonymizer_helper.class.php.

static process_user_institution ( value) [static]

Definition at line 109 of file backup_anonymizer_helper.class.php.

static process_user_lastip ( value) [static]

Definition at line 129 of file backup_anonymizer_helper.class.php.

static process_user_lastname ( value) [static]

Definition at line 69 of file backup_anonymizer_helper.class.php.

static process_user_msn ( value) [static]

Definition at line 97 of file backup_anonymizer_helper.class.php.

static process_user_phone1 ( value) [static]

Definition at line 101 of file backup_anonymizer_helper.class.php.

static process_user_phone2 ( value) [static]

Definition at line 105 of file backup_anonymizer_helper.class.php.

static process_user_picture ( value) [static]

Definition at line 133 of file backup_anonymizer_helper.class.php.

static process_user_skype ( value) [static]

Definition at line 85 of file backup_anonymizer_helper.class.php.

static process_user_url ( value) [static]

Definition at line 137 of file backup_anonymizer_helper.class.php.

static process_user_username ( value) [static]

Definition at line 53 of file backup_anonymizer_helper.class.php.

static process_user_yahoo ( value) [static]

Definition at line 89 of file backup_anonymizer_helper.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations