CRM_Logging_Reverter
in package
Tags
Table of Contents
Properties
- $db : mixed
- $diffs : array<string|int, mixed>
- The diffs to be reverted.
- $log_conn_id : mixed
- $log_date : mixed
Methods
- __construct() : mixed
- Class constructor.
- calculateDiffsFromLogConnAndDate() : mixed
- Calculate a set of diffs based on the connection_id and changes at a close time.
- revert() : mixed
- Revert changes in the array of diffs in $this->diffs.
- setDiffs() : mixed
- Setter for diffs.
Properties
$db
private
mixed
$db
$diffs
The diffs to be reverted.
private
array<string|int, mixed>
$diffs
= []
$log_conn_id
private
mixed
$log_conn_id
$log_date
private
mixed
$log_date
Methods
__construct()
Class constructor.
public
__construct(string $log_conn_id, mixed $log_date) : mixed
Parameters
- $log_conn_id : string
- $log_date : mixed
calculateDiffsFromLogConnAndDate()
Calculate a set of diffs based on the connection_id and changes at a close time.
public
calculateDiffsFromLogConnAndDate(array<string|int, mixed> $tables) : mixed
Parameters
- $tables : array<string|int, mixed>
revert()
Revert changes in the array of diffs in $this->diffs.
public
revert() : mixed
setDiffs()
Setter for diffs.
public
setDiffs(array<string|int, mixed> $diffs) : mixed
Parameters
- $diffs : array<string|int, mixed>