Legend of the Green Dragon

charcleanup.php

Table of Contents

char_cleanup()  : bool
Delete an account and create a backup.
createBackupOfEntity()  : bool
Create backup of Entity in "logd_snapshots".
createBackupBasicInfo()  : bool
Create a basic info backup of account.

Functions

char_cleanup()

Delete an account and create a backup.

char_cleanup(int $accountId, int $type) : bool

In order to create a backup and delete the data, the EntityRepository of each table needs to have the following two methods:

  • public function backupDeleteDataFromAccount(int $accountId): array }
  • public function backupGetDataFromAccount(int $accountId): int }
Parameters
$accountId : int
$type : int

createBackupOfEntity()

Create backup of Entity in "logd_snapshots".

createBackupOfEntity(int $accountId, object $repository, string $entityName) : bool
Parameters
$accountId : int
$repository : object
$entityName : string

createBackupBasicInfo()

Create a basic info backup of account.

createBackupBasicInfo(int $accountId, mixed $account) : bool
Parameters
$accountId : int
$account : mixed

Search results