audit_log_repository
class audit_log_repository extends abstract_repository implements audit_log_repository_interface
| internal |
Audit log repository.
Handles the main audit table and its child tables (diffs and snapshot).
Constants
| private TABLE |
|
Methods
__construct(audit_log_mapper $mapper, audit_diff_repository_interface|null $diff_repository = null, audit_snapshot_repository_interface|null $snapshot_repository = null)
Constructor.
audit_log_interface|null
find_by_id(int $id)
Find audit log by ID and hydrate aggregates.
array
find_by_item(int $itemid, int $limit = 20)
Find latest audit logs for an item.
Details
at line 46
__construct(audit_log_mapper $mapper, audit_diff_repository_interface|null $diff_repository = null, audit_snapshot_repository_interface|null $snapshot_repository = null)
Constructor.
at line 61
audit_log_interface
log(audit_log_interface $event)
Persist an audit log and its associated data (diffs/snapshot).
at line 109
audit_log_interface|null
find_by_id(int $id)
Find audit log by ID and hydrate aggregates.
at line 131
array
find_by_item(int $itemid, int $limit = 20)
Find latest audit logs for an item.