audit_log_interface
interface audit_log_interface implements entity_interface
| internal |
Interface Audit Log.
Contract for the audit log aggregate found in middag_audit_log.
Methods
Stable identifier for the audit record.
Audited subject type.
Audited subject identifier.
Audited subject natural key.
Related course identifier.
The ID of the item affected by this audit record.
Get the extension slug that emitted the audited fact.
Compatibility alias for event type identifier.
Get the canonical audited event name identifier.
Get the user ID responsible for the audited fact.
Get the origin source (e.g., web, api).
Get the optional human-readable message.
Trace correlation identifier.
Returns the structured context data associated with the audited fact.
Does this audit record contain field differences?
Does this audit record contain a full item snapshot?
Get the creation timestamp of the audit record.
Get the list of field changes associated with this audit record.
Get the full data snapshot if available.
Details
in
entity_interface at line 38
int|null
get_id()
Get the entity unique identifier.
Returns null if the entity has not been persisted yet.
in
entity_interface at line 46
array
to_array()
Convert the entity state to a plain associative array.
Useful for DTO conversion, logging, or debugging.
at line 34
string|null
get_uuid()
Stable identifier for the audit record.
at line 39
string
get_subjecttype()
Audited subject type.
at line 44
int|null
get_subjectid()
Audited subject identifier.
at line 49
string|null
get_subjectkey()
Audited subject natural key.
at line 54
int|null
get_courseid()
Related course identifier.
at line 61
int|null
get_itemid()
The ID of the item affected by this audit record.
at line 66
string
get_extension()
Get the extension slug that emitted the audited fact.
at line 71
string
get_eventtype()
Compatibility alias for event type identifier.
at line 76
string
get_eventname()
Get the canonical audited event name identifier.
at line 81
int|null
get_userid()
Get the user ID responsible for the audited fact.
at line 86
string
get_origin()
Get the origin source (e.g., web, api).
at line 91
string|null
get_message()
Get the optional human-readable message.
at line 96
string|null
get_correlationid()
Trace correlation identifier.
at line 104
array
get_contextdata()
Returns the structured context data associated with the audited fact.
Decoded from JSON storage into an array.
at line 111
bool
has_diff()
Does this audit record contain field differences?
at line 118
bool
has_snapshot()
Does this audit record contain a full item snapshot?
at line 123
int
get_timecreated()
Get the creation timestamp of the audit record.
at line 130
array
get_diffs()
Get the list of field changes associated with this audit record.
at line 137
audit_snapshot_interface|null
get_snapshot()
Get the full data snapshot if available.