Documentation

Anonymization
in package

Anonymization class.

Table of Contents

LOGS  = 0
MAPS  = ['password' => ['pass', 'password', 'oldPassword', 'retype_password', 'db_password']]
MODTRACKER_DB  = 2
MODTRACKER_DISPLAY  = 1
$detectModuleName  : bool
$value  : bool
$data  : array<string|int, mixed>
$fields  : array<string|int, string>
$map  : string
$moduleName  : string
__construct()  : mixed
Anonymization constructor.
anonymize()  : void
Data anonymization.
getData()  : self
Get data.
getFields()  : array<string|int, string>
Get list of fields for anonymized.
getTypes()  : array<string|int, mixed>
Gets Anonymization types.
setData()  : self
Set data.
setModuleName()  : self
Set module name.
anonymizeByFields()  : array<string|int, mixed>
Anonymize by fields.
detectModuleName()  : void
Detect module name.

Constants

MAPS

public array<string|int, mixed> MAPS = ['password' => ['pass', 'password', 'oldPassword', 'retype_password', 'db_password']]

Word map for anonymization.

MODTRACKER_DB

public int MODTRACKER_DB = 2

Anonymization of change history entries on the database layer.

MODTRACKER_DISPLAY

public int MODTRACKER_DISPLAY = 1

Anonymization of change history entries on the displayed data layer.

Properties

$detectModuleName

public bool $detectModuleName = true

Detect module name if not there

$value

public bool $value = '****'

Value for anonymised data

$fields

protected array<string|int, string> $fields

Keys to ananimation

Methods

__construct()

Anonymization constructor.

public __construct([string $map = 'all' ]) : mixed
Parameters
$map : string = 'all'
Return values
mixed

anonymize()

Data anonymization.

public anonymize() : void
Return values
void

getData()

Get data.

public getData() : self
Return values
self

getFields()

Get list of fields for anonymized.

public static getFields(int $moduleId) : array<string|int, string>
Parameters
$moduleId : int

Module id

Return values
array<string|int, string>

getTypes()

Gets Anonymization types.

public static getTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

setData()

Set data.

public setData(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

setModuleName()

Set module name.

public setModuleName(string $moduleName) : self
Parameters
$moduleName : string
Return values
self

anonymizeByFields()

Anonymize by fields.

private anonymizeByFields(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

detectModuleName()

Detect module name.

private detectModuleName() : void
Return values
void

        

Search results