CoolCMS API

AccountAnonymizationManager
in package
implements AccountAnonymizationStepInterface

FinalYes

Discussion share of anonymizing a deleted account: posts stay, but the author name and e-mail copied into them at posting time are replaced — the lists print the copy directly. The fulltext index does not carry the author, so no reindex.

Table of Contents

Interfaces

AccountAnonymizationStepInterface
One module's share of anonymizing a deleted account.

Properties

$messageManager  : MessageManager

Methods

__construct()  : mixed
anonymizeUser()  : array<string, int>

Properties

Methods

anonymizeUser()

public anonymizeUser(int $userId, string $originalEmail, string $deletedLabel) : array<string, int>
Parameters
$userId : int
$originalEmail : string

e-mail of the account before anonymization ('' = none)

$deletedLabel : string

translated "Deleted user" written over copied author names

Return values
array<string, int> —

what was changed, for the audit log (e.g. bazaarAdvertsDeactivated => 2)

On this page

Search results