class CRM_Logging_Differ

Methods

__construct(string $log_conn_id, string $log_date, string $interval = '10 SECOND')

Class constructor.

array
diffsInTables($tables)

No description

array
diffsInTable($table, int $contactID = NULL)

No description

array
titlesAndValuesForTable(string $table, string $referenceDate)

Get the titles & metadata option values for the table.

array
getAllChangesForConnection(array $tables)

Get all changes made in the connection.

static bool
checkLogCanBeUsedWithNoLogDate(string $change_date)

Check that the log record relates to a unique log id.

Details

at line 48
__construct(string $log_conn_id, string $log_date, string $interval = '10 SECOND')

Class constructor.

Parameters

string $log_conn_id
string $log_date
string $interval

at line 61
array diffsInTables($tables)

Parameters

$tables

Return Value

array

at line 78
array diffsInTable($table, int $contactID = NULL)

Parameters

$table
int $contactID

Return Value

array

at line 281
array titlesAndValuesForTable(string $table, string $referenceDate)

Get the titles & metadata option values for the table.

For custom fields the titles may change so we use the ones as at the reference date.

Parameters

string $table
string $referenceDate

Return Value

array

at line 426
array getAllChangesForConnection(array $tables)

Get all changes made in the connection.

Parameters

array $tables Array of tables to inspect.

Return Value

array

at line 462
static bool checkLogCanBeUsedWithNoLogDate(string $change_date)

Check that the log record relates to a unique log id.

If the record was recorded using the old non-unique style then the log_date MUST be set to get the (fairly accurate) list of changes. In this case the nasty 10 second interval rule is applied.

See CRM-18193 for a discussion of unique log id.

Parameters

string $change_date

Return Value

bool

Exceptions

CiviCRM_API3_Exception