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