Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static public function addHistoryLog($table_name, $record_id, $action, $data = array())
- {
- $user_id = Lib_User::getUser()->getUid();
- $compressed_data = base64_encode(gzcompress(json_encode($data), 9));
- $updateFields = array(
- 'timestamp' => time(),
- 'table_name' => $table_name,
- 'record_id' => $record_id,
- 'action' => $action,
- 'user_id' => $user_id,
- 'param1' => $compressed_data
- );
- $query = Lib_MysqlManage::insertRequestFromArray($updateFields, 'data_history_log');
- Lib_MysqlManage::makeQuery($query);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement