Documentation

Anonymization
in package

Anonymization class.

Table of Contents

MAPS  = ['password' => ['pass', 'password', 'oldPassword']]
$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.
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']]

Word map for anonymization.

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>

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