cfmgrv4/app/Controllers/Admin/Cloudflare/AuditLogController.php
2025-03-13 11:25:45 +09:00

37 lines
1.2 KiB
PHP

<?php
namespace App\Controllers\Admin\Cloudflare;
use App\Helpers\Cloudflare\AuditLogHelper;
use App\Services\Cloudflare\AuditLogService;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
class AuditLogController extends CloudflareController
{
private $_auth_entity = null;
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->title = lang("{$this->getService()->getClassPath()}.title");
$this->helper = new AuditLogHelper();
}
protected function getService(): AuditLogService
{
if ($this->service === null) {
$this->service = new AuditLogService();
$this->class_name = $this->service->getClassName();
$this->class_path = $this->service->getClassPath();
}
return $this->service;
}
// 리스트
protected function index_entitys_process(): array
{
//기본Soring처리
$this->getService()->getModel()->orderBy("created_at DESC,zone_name ASC");
return parent::index_entitys_process();
}
}