mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Removed "json_" prefixes from all columns and converted columns to actual JSON types. Also removed all converged columns and converted contents to regular columns.
27 lines
651 B
PHP
27 lines
651 B
PHP
<?php
|
|
|
|
/**
|
|
* Log for these external API calls.
|
|
*
|
|
* @author Jon Ziebell
|
|
*/
|
|
class external_api_log extends cora\crud {
|
|
|
|
/**
|
|
* Insert an item into the log table using the transactionless database
|
|
* connection.
|
|
*
|
|
* @param array $attributes The attributes to insert.
|
|
*
|
|
* @return int The ID of the inserted row.
|
|
*/
|
|
public function create($attributes) {
|
|
$attributes['user_id'] = $this->session->get_user_id();
|
|
|
|
// Insert using the transactionless connection.
|
|
$database = cora\database::get_transactionless_instance();
|
|
return $database->create($this->resource, $attributes, 'id');
|
|
}
|
|
|
|
}
|