interface audit_log_interface implements entity_interface

internal  
 

Interface Audit Log.

Contract for the audit log aggregate found in middag_audit_log.

Methods

int|null
get_id()

Get the entity unique identifier.

array
to_array()

Convert the entity state to a plain associative array.

string|null
get_uuid()

Stable identifier for the audit record.

string
get_subjecttype()

Audited subject type.

int|null
get_subjectid()

Audited subject identifier.

string|null
get_subjectkey()

Audited subject natural key.

int|null
get_courseid()

Related course identifier.

int|null
get_itemid()

The ID of the item affected by this audit record.

string
get_extension()

Get the extension slug that emitted the audited fact.

string
get_eventtype()

Compatibility alias for event type identifier.

string
get_eventname()

Get the canonical audited event name identifier.

int|null
get_userid()

Get the user ID responsible for the audited fact.

string
get_origin()

Get the origin source (e.g., web, api).

string|null
get_message()

Get the optional human-readable message.

string|null
get_correlationid()

Trace correlation identifier.

array
get_contextdata()

Returns the structured context data associated with the audited fact.

bool
has_diff()

Does this audit record contain field differences?

bool
has_snapshot()

Does this audit record contain a full item snapshot?

int
get_timecreated()

Get the creation timestamp of the audit record.

array
get_diffs()

Get the list of field changes associated with this audit record.

audit_snapshot_interface|null
get_snapshot()

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.

Return Value

int|null

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.

Return Value

array

at line 34
string|null get_uuid()

Stable identifier for the audit record.

Return Value

string|null

at line 39
string get_subjecttype()

Audited subject type.

Return Value

string

at line 44
int|null get_subjectid()

Audited subject identifier.

Return Value

int|null

at line 49
string|null get_subjectkey()

Audited subject natural key.

Return Value

string|null

at line 54
int|null get_courseid()

Related course identifier.

Return Value

int|null

at line 61
int|null get_itemid()

The ID of the item affected by this audit record.

Return Value

int|null

at line 66
string get_extension()

Get the extension slug that emitted the audited fact.

Return Value

string

at line 71
string get_eventtype()

Compatibility alias for event type identifier.

Return Value

string

at line 76
string get_eventname()

Get the canonical audited event name identifier.

Return Value

string

at line 81
int|null get_userid()

Get the user ID responsible for the audited fact.

Return Value

int|null

at line 86
string get_origin()

Get the origin source (e.g., web, api).

Return Value

string

at line 91
string|null get_message()

Get the optional human-readable message.

Return Value

string|null

at line 96
string|null get_correlationid()

Trace correlation identifier.

Return Value

string|null

at line 104
array get_contextdata()

Returns the structured context data associated with the audited fact.

Decoded from JSON storage into an array.

Return Value

array

at line 111
bool has_diff()

Does this audit record contain field differences?

Return Value

bool

at line 118
bool has_snapshot()

Does this audit record contain a full item snapshot?

Return Value

bool

at line 123
int get_timecreated()

Get the creation timestamp of the audit record.

Return Value

int

at line 130
array get_diffs()

Get the list of field changes associated with this audit record.

Return Value

array

at line 137
audit_snapshot_interface|null get_snapshot()

Get the full data snapshot if available.

Return Value

audit_snapshot_interface|null