Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 20th January 2025 20:35 Europe/London time based on the source file dated 17th January 2025 17:40 Europe/London time.