CRM_Logging_Differ
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.
at line 61
array
diffsInTables($tables)
at line 78
array
diffsInTable($table, int $contactID = NULL)
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.
at line 426
array
getAllChangesForConnection(array $tables)
Get all changes made in the connection.
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.