| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 3.1.13 Free |
| 5 |
* |
| 6 |
* @author FirePlugins <info@fireplugins.com> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace FireBox\Core\Tables; |
| 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 |
/** |
| 24 |
* The column list below covers this table in full, so inserts can safely be |
| 25 |
* restricted to it. |
| 26 |
* |
| 27 |
* @var bool |
| 28 |
*/ |
| 29 |
protected $enforce_insert_columns = true; |
| 30 |
|
| 31 |
public function __construct() |
| 32 |
{ |
| 33 |
$this->table_name = 'firebox_logs_details'; |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Get columns and formats |
| 38 |
* |
| 39 |
* @return array |
| 40 |
*/ |
| 41 |
public function get_columns() |
| 42 |
{ |
| 43 |
return [ |
| 44 |
'id' => '%d', |
| 45 |
'log_id' => '%d', |
| 46 |
'event' => '%s', |
| 47 |
'event_source' => '%s', |
| 48 |
'event_label' => '%s', |
| 49 |
'date' => '%s', |
| 50 |
]; |
| 51 |
} |
| 52 |
} |