uri_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR; $this->view_path = $this->uri_path; $this->title = lang("MyLog.title"); $this->helper = new Helper($this->request); } protected function getServiceClass(): Service { if ($this->service === null) { $this->service = new Service(); } return $this->service; } public function getUserService(): UserService { if ($this->_userService === null) { $this->_userService = new UserService($this->request); } return $this->_userService; } //Index,FieldForm관련 public function getFields(): array { return ['class_name', 'method_name', $this->getService()->getModel()::TITLE, 'user_uid', 'status']; } public function getFilterFields(): array { return ['user_uid', 'status']; } public function getBatchJobFields(): array { return []; } protected function getFormFieldOption(string $field, array $options = []): array { switch ($field) { case 'user_uid': // $this->getUserModel()->where('status', DEFAULTS['STATUS']); $options[$field] = $this->getUserService()->getFormFieldOption($field); // echo $this->getUserModel()->getLastQuery(); // dd($options); break; default: $options = parent::getFormFieldOption($field, $options); break; } return $options; } //Index,FieldForm관련 //View관련 protected function view_process($uid): mixed { $fields = [ 'fields' => ['user_uid', 'class_name', 'method_name', $this->getService()->getModel()::TITLE, 'created_at', 'status', 'content'], ]; return parent::view_process($uid); } }