From b0ea9482c6edac6f48f3c847994c2c0a47bd6bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 14 May 2024 10:18:09 +0900 Subject: [PATCH] vhost init...2 --- app/Language/ko/Category.php | 1 - app/Models/BaseModel.php | 14 +------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/Language/ko/Category.php b/app/Language/ko/Category.php index 13794dd..60005a2 100644 --- a/app/Language/ko/Category.php +++ b/app/Language/ko/Category.php @@ -30,6 +30,5 @@ return [ "ISREPLY" => $roles, "ISUPLOAD" => $roles, "ISDOWNLOAD" => $roles, - "STATUS" => $roles, 'STATUS' => ['use' => '사용', 'unuse' => '사용않함'], ]; diff --git a/app/Models/BaseModel.php b/app/Models/BaseModel.php index 0446c22..9a4c4fc 100644 --- a/app/Models/BaseModel.php +++ b/app/Models/BaseModel.php @@ -63,7 +63,7 @@ abstract class BaseModel extends Model abstract public function getTitleField(): string; abstract public function getEntity($conditions): BaseEntity; - final protected function getClassName() + final protected function getClassName(): string { return $this->_className; } @@ -191,18 +191,6 @@ abstract class BaseModel extends Model } return $options; } - //Field별 Form Option용 - // final public function getFieldFormOptions(array $fields): array - // { - // $fieldFormOptions = array(); - // foreach ($fields as $field) { - // if (!is_string($field)) { - // throw new \Exception(__FUNCTION__ . "에서 {$this->getClassName()}의 Field:{$field}가 string 아닙니다.\n" . var_export($fields, true)); - // } - // $fieldFormOptions[$field] = $this->getFieldFormOption($field); - // } - // return $fieldFormOptions; - // } //create , modify 직전 작업용 작업 protected function changeFormData(string $action, string $field, array $formDatas, $entity): BaseEntity