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; } //View public function view(string $uid): RedirectResponse|string { $this->init(__FUNCTION__, ['zone_name', $this->getService()->getModel()::TITLE, 'actor', 'action_info', 'interface', 'meta', 'resource', 'status', 'updated_at', 'created_at']); return $this->view_procedure($uid); } // 리스트 protected function list_entitys_process(): array { //기본Soring처리 $this->getService()->getModel()->orderBy("created_at DESC,zone_name ASC"); return parent::list_entitys_process(); } public function index(): string { $this->init(__FUNCTION__); return $this->list_procedure(); } // Download public function download(string $output_type, mixed $uid = false): DownloadResponse|string { $this->init(__FUNCTION__); return $this->download_procedure($output_type, $uid); } }