CoolCMS API

AccountAnonymizationManager
in package
implements AccountAnonymizationStepInterface

FinalYes

Blog share of anonymizing a deleted account: messages of the discussion under articles (`cms_mod_blog_article_discussion_messages`) stay, but the author name and e-mail copied into them at posting time are replaced — "Deleted user" and NULL.

Deliberately nothing else of the Blog module (user's decision 3. 10. 2026): the guestbook, contact messages and the author text of articles stay unchanged. The fulltext index of the articles does not carry the discussion, so no reindex.

Table of Contents

Interfaces

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

Properties

$messageManager  : ArticleDiscussionMessageManager

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