Index

(view)

o2record_log

o2record_log(string $view_name, string $table_alias, integer $exe_id)

Returns an array of events happpened on a record of a view.
Each record is in the form:
"id" => event timestamp with microseconds,
"date" => event date,
"time" => event time,
"act" => event action [I|D|C|U],
"user" => user who fired the event,
"<...>" => record fields with values.

Insert records contains fields values the record was created with.

For each Update record there is a Change record with the same ID: the Change record contains the Values before modification, the Update record contains the Values after modification.

Delete records contains the last fields Values before deleting.
Delete records matching Update records are changed to "C" for easy filtering.


Parameters:
  1. $view_name
  2. Name of the view to get history for
  3. $table_alias
  4. Alias of the view table to get history for
  5. $exe_id
  6. Program execution ID: use 0 or nothing for current program
Related functions:

o2ctrl_log