Backup
in package
Table of Contents
- $crypt : mixed
- $doctrine : mixed
- $eventDispatcher : mixed
- $log : mixed
- $normalizer : mixed
- $serializer : mixed
- __construct() : mixed
- characterCleanUp() : bool
- Delete an account and create a backup.
- circularReferenceHandler() : mixed
- createBackupBasicInfo() : bool
- Create a basic info backup of account.
- createBackupOfEntity() : bool
- Create backup of Entity in "logd_snapshots".
- processClan() : void
Properties
$crypt
private
mixed
$crypt
$doctrine
private
mixed
$doctrine
$eventDispatcher
private
mixed
$eventDispatcher
$log
private
mixed
$log
$normalizer
private
mixed
$normalizer
$serializer
private
mixed
$serializer
Methods
__construct()
public
__construct(EntityManagerInterface $doctrine, Log $log, EventDispatcherInterface $eventDispatcher, NormalizerInterface $normalizer, SerializerInterface $serializer, OpensslService $crypt) : mixed
Parameters
- $doctrine : EntityManagerInterface
- $log : Log
- $eventDispatcher : EventDispatcherInterface
- $normalizer : NormalizerInterface
- $serializer : SerializerInterface
- $crypt : OpensslService
Return values
mixed —characterCleanUp()
Delete an account and create a backup.
public
characterCleanUp(int $accountId, string $type) : bool
In order to create a backup and delete the data, the Entity Repository 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 : string
Return values
bool —circularReferenceHandler()
private
circularReferenceHandler() : mixed
Return values
mixed —createBackupBasicInfo()
Create a basic info backup of account.
private
createBackupBasicInfo(int $accountId, mixed $account, array<string|int, mixed> $encrypt) : bool
Parameters
- $accountId : int
- $account : mixed
- $encrypt : array<string|int, mixed>
Return values
bool —createBackupOfEntity()
Create backup of Entity in "logd_snapshots".
private
createBackupOfEntity(int $accountId, object $repository, string $entityName[, bool $encrypt = false ]) : bool
Parameters
- $accountId : int
- $repository : object
- $entityName : string
- $encrypt : bool = false
Return values
bool —processClan()
private
processClan(int $accountId, mixed $accountEntity) : void
Parameters
- $accountId : int
- $accountEntity : mixed