| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 1.0.0 Free |
| 5 |
* |
| 6 |
* @author FirePlugins <info@fireplugins.com> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2021 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace FireBox\Core\Models; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) |
| 15 |
{ |
| 16 |
exit; // Exit if accessed directly. |
| 17 |
} |
| 18 |
|
| 19 |
use FPFramework\Includes\DB; |
| 20 |
|
| 21 |
class Boxlogdetails extends DB |
| 22 |
{ |
| 23 |
public function __construct() |
| 24 |
{ |
| 25 |
$this->table_name = 'firebox_logs_details'; |
| 26 |
$this->primary_key = 'id'; |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* Get columns and formats |
| 31 |
* |
| 32 |
* @return array |
| 33 |
*/ |
| 34 |
public function get_columns() |
| 35 |
{ |
| 36 |
return [ |
| 37 |
'id' => '%d', |
| 38 |
'log_id' => '%s', |
| 39 |
'event' => '%s', |
| 40 |
'params' => '%s', |
| 41 |
'date' => '%s', |
| 42 |
]; |
| 43 |
} |
| 44 |
} |