servermgrv2/app/Libraries/Log/DataBase.php
최준흠git config git config --helpgit config --global user.name 최준흠 b3659ee820 servermgrv2 init...
2023-07-22 23:19:44 +09:00

24 lines
427 B
PHP

<?php
namespace App\Libraries\Log;
use \App\Models\LoggerModel;
class DataBase
{
private $_model = null;
public function __construct()
{
$this->_model = new LoggerModel();
}
public function save(string $title, string $status, array $logs)
{
$datas = array(
'title' => $title,
'status' => $status,
'content' => implode("\n", $logs)
);
return $this->_model->create($datas);
}
}