Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_activity_log()

Description

Get activity log entries from log tables (e.g activity_log, resource_log and collection_log)


Example of where statements:
$where_statements = array(
'activity_log' => "`activity_log`.`user`='{$actasuser}' AND ",
'resource_log' => "`resource_log`.`user`='{$actasuser}' AND ",
'collection_log' => "`collection_log`.`user`='{$actasuser}' AND ",
);

Parameters

ColumnTypeDefaultDescription
$search string Search text to filter down results using fuzzy searching
$offset integer Specifies the offset of the first row to return
$rows integer Specifies the maximum number of rows to return
$where_statements array Where statements for log tables
$table string Table name (e.g resource_type_field, user, resource)
$table_reference integer ID of the record in the referred table
$count boolean false Switch for if the result should be a single count or the result set

Return

array

This article was last updated 23rd November 2020 19:35 Europe/London time based on the source file dated 23rd October 2020 12:55 Europe/London time.