This commit is contained in:
Jaybe
2025-03-05 14:02:29 +09:00
commit 247a7808d3
357 changed files with 161196 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Services;
class AdvLoggerService
{
protected $db, $currentDate, $tableName;
public function __construct()
{
$this->db = \Config\Database::connect();
}
public function insertLog($data)
{
$this->db->table('adv_change_logs')->insert($data);
}
}
?>
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Services;
class LoggerService
{
protected $db, $currentDate, $tableName;
public function __construct()
{
$this->db = \Config\Database::connect();
$this->currentDate = date('Ym');
$this->tableName = 'zenith_logs_'.$this->currentDate;
}
public function insertLog($data)
{
$this->db->table($this->tableName)->insert($data);
}
}
?>