From 063757a672c5a0dc4c186baa06c84f3b65110273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 19 Nov 2025 11:39:59 +0900 Subject: [PATCH] dbmsv4 init...1 --- app/Controllers/Admin/Customer/AccountController.php | 11 ++++++----- app/Controllers/Admin/Customer/ClientController.php | 11 ++++++----- app/Controllers/Admin/Customer/CouponController.php | 11 ++++++----- app/Controllers/Admin/Customer/PointController.php | 11 ++++++----- app/Controllers/Admin/Equipment/LineController.php | 11 ++++++----- app/Controllers/Admin/Equipment/ServerController.php | 11 ++++++----- .../Admin/Equipment/ServerPartController.php | 11 ++++++----- app/Controllers/Admin/MylogController.php | 11 ++++++----- app/Controllers/Admin/Part/CPUController.php | 11 ++++++----- app/Controllers/Admin/Part/CSController.php | 11 ++++++----- app/Controllers/Admin/Part/DISKController.php | 11 ++++++----- app/Controllers/Admin/Part/IPController.php | 11 ++++++----- app/Controllers/Admin/Part/RAMController.php | 11 ++++++----- app/Controllers/Admin/Part/SOFTWAREController.php | 11 ++++++----- app/Controllers/Admin/Part/SWITCHController.php | 11 ++++++----- app/Controllers/Admin/PaymentController.php | 11 ++++++----- app/Controllers/Admin/UserController.php | 11 ++++++----- app/DTOs/Auth/AuthDTO.php | 1 - app/DTOs/CommonDTO.php | 2 +- app/Services/Customer/AccountService.php | 6 +++--- app/Services/Customer/ClientService.php | 6 +++--- app/Services/Customer/CouponService.php | 6 +++--- app/Services/Customer/PointService.php | 6 +++--- app/Services/Equipment/LineService.php | 6 +++--- app/Services/Equipment/ServerPartService.php | 6 +++--- app/Services/Equipment/ServerService.php | 6 +++--- app/Services/Part/CPUService.php | 6 +++--- app/Services/Part/CSService.php | 6 +++--- app/Services/Part/DISKService.php | 6 +++--- app/Services/Part/IPService.php | 6 +++--- app/Services/Part/RAMService.php | 6 +++--- app/Services/Part/SOFTWAREService.php | 6 +++--- app/Services/Part/SWITCHService.php | 6 +++--- 33 files changed, 145 insertions(+), 129 deletions(-) diff --git a/app/Controllers/Admin/Customer/AccountController.php b/app/Controllers/Admin/Customer/AccountController.php index 6205415..efb6e14 100644 --- a/app/Controllers/Admin/Customer/AccountController.php +++ b/app/Controllers/Admin/Customer/AccountController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class AccountController extends CustomerController { @@ -85,7 +86,7 @@ class AccountController extends CustomerController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -101,7 +102,7 @@ class AccountController extends CustomerController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -116,7 +117,7 @@ class AccountController extends CustomerController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -131,7 +132,7 @@ class AccountController extends CustomerController try { $entity = $this->delete_process($uid); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -145,7 +146,7 @@ class AccountController extends CustomerController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Customer/ClientController.php b/app/Controllers/Admin/Customer/ClientController.php index f0687a3..f73194e 100644 --- a/app/Controllers/Admin/Customer/ClientController.php +++ b/app/Controllers/Admin/Customer/ClientController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class ClientController extends CustomerController { @@ -94,7 +95,7 @@ class ClientController extends CustomerController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -110,7 +111,7 @@ class ClientController extends CustomerController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -125,7 +126,7 @@ class ClientController extends CustomerController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -140,7 +141,7 @@ class ClientController extends CustomerController try { $entity = $this->delete_process($uid); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -154,7 +155,7 @@ class ClientController extends CustomerController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Customer/CouponController.php b/app/Controllers/Admin/Customer/CouponController.php index f9dab88..e57b1e0 100644 --- a/app/Controllers/Admin/Customer/CouponController.php +++ b/app/Controllers/Admin/Customer/CouponController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class CouponController extends CustomerController { @@ -81,7 +82,7 @@ class CouponController extends CustomerController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -97,7 +98,7 @@ class CouponController extends CustomerController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -112,7 +113,7 @@ class CouponController extends CustomerController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -127,7 +128,7 @@ class CouponController extends CustomerController try { $entity = $this->delete_process($uid); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -141,7 +142,7 @@ class CouponController extends CustomerController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Customer/PointController.php b/app/Controllers/Admin/Customer/PointController.php index eb9bd87..46d3269 100644 --- a/app/Controllers/Admin/Customer/PointController.php +++ b/app/Controllers/Admin/Customer/PointController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class PointController extends CustomerController { @@ -81,7 +82,7 @@ class PointController extends CustomerController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -97,7 +98,7 @@ class PointController extends CustomerController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -112,7 +113,7 @@ class PointController extends CustomerController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -127,7 +128,7 @@ class PointController extends CustomerController try { $entity = $this->delete_process($uid); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -141,7 +142,7 @@ class PointController extends CustomerController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Equipment/LineController.php b/app/Controllers/Admin/Equipment/LineController.php index 1626c7a..5787d2e 100644 --- a/app/Controllers/Admin/Equipment/LineController.php +++ b/app/Controllers/Admin/Equipment/LineController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class LineController extends EquipmentController { @@ -82,7 +83,7 @@ class LineController extends EquipmentController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -98,7 +99,7 @@ class LineController extends EquipmentController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -113,7 +114,7 @@ class LineController extends EquipmentController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -128,7 +129,7 @@ class LineController extends EquipmentController try { $entity = $this->delete_process($uid); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -142,7 +143,7 @@ class LineController extends EquipmentController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Equipment/ServerController.php b/app/Controllers/Admin/Equipment/ServerController.php index 1498067..72c5fe9 100644 --- a/app/Controllers/Admin/Equipment/ServerController.php +++ b/app/Controllers/Admin/Equipment/ServerController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class ServerController extends EquipmentController { @@ -86,7 +87,7 @@ class ServerController extends EquipmentController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -102,7 +103,7 @@ class ServerController extends EquipmentController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -117,7 +118,7 @@ class ServerController extends EquipmentController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -132,7 +133,7 @@ class ServerController extends EquipmentController try { $entity = $this->delete_process($uid); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -146,7 +147,7 @@ class ServerController extends EquipmentController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Equipment/ServerPartController.php b/app/Controllers/Admin/Equipment/ServerPartController.php index 3493179..b6a3ab2 100644 --- a/app/Controllers/Admin/Equipment/ServerPartController.php +++ b/app/Controllers/Admin/Equipment/ServerPartController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class ServerPartController extends EquipmentController { @@ -87,7 +88,7 @@ class ServerPartController extends EquipmentController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -103,7 +104,7 @@ class ServerPartController extends EquipmentController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -118,7 +119,7 @@ class ServerPartController extends EquipmentController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -133,7 +134,7 @@ class ServerPartController extends EquipmentController try { $entity = $this->delete_process($uid); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -147,7 +148,7 @@ class ServerPartController extends EquipmentController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/MylogController.php b/app/Controllers/Admin/MylogController.php index a84f332..b6e8844 100644 --- a/app/Controllers/Admin/MylogController.php +++ b/app/Controllers/Admin/MylogController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class MylogController extends AdminController { @@ -67,7 +68,7 @@ class MylogController extends AdminController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof MylogEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -83,7 +84,7 @@ class MylogController extends AdminController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof MylogEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -98,7 +99,7 @@ class MylogController extends AdminController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof MylogEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -113,7 +114,7 @@ class MylogController extends AdminController try { $entity = $this->delete_process($uid); if (!$entity instanceof MylogEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -127,7 +128,7 @@ class MylogController extends AdminController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof MylogEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 MylogEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/CPUController.php b/app/Controllers/Admin/Part/CPUController.php index b9c1e56..0d65363 100644 --- a/app/Controllers/Admin/Part/CPUController.php +++ b/app/Controllers/Admin/Part/CPUController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class CPUController extends PartController { @@ -79,7 +80,7 @@ class CPUController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -95,7 +96,7 @@ class CPUController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -110,7 +111,7 @@ class CPUController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -125,7 +126,7 @@ class CPUController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -139,7 +140,7 @@ class CPUController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/CSController.php b/app/Controllers/Admin/Part/CSController.php index 0c5b753..1b28316 100644 --- a/app/Controllers/Admin/Part/CSController.php +++ b/app/Controllers/Admin/Part/CSController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class CSController extends PartController { @@ -106,7 +107,7 @@ class CSController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -122,7 +123,7 @@ class CSController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -137,7 +138,7 @@ class CSController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -152,7 +153,7 @@ class CSController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -166,7 +167,7 @@ class CSController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/DISKController.php b/app/Controllers/Admin/Part/DISKController.php index ebb1ba8..0089468 100644 --- a/app/Controllers/Admin/Part/DISKController.php +++ b/app/Controllers/Admin/Part/DISKController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class DISKController extends PartController { @@ -80,7 +81,7 @@ class DISKController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -96,7 +97,7 @@ class DISKController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -111,7 +112,7 @@ class DISKController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -126,7 +127,7 @@ class DISKController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -140,7 +141,7 @@ class DISKController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/IPController.php b/app/Controllers/Admin/Part/IPController.php index 2608c39..6ef622b 100644 --- a/app/Controllers/Admin/Part/IPController.php +++ b/app/Controllers/Admin/Part/IPController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class IPController extends PartController { @@ -97,7 +98,7 @@ class IPController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -113,7 +114,7 @@ class IPController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -128,7 +129,7 @@ class IPController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -143,7 +144,7 @@ class IPController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -157,7 +158,7 @@ class IPController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/RAMController.php b/app/Controllers/Admin/Part/RAMController.php index 0af5fda..7947219 100644 --- a/app/Controllers/Admin/Part/RAMController.php +++ b/app/Controllers/Admin/Part/RAMController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class RAMController extends PartController { @@ -79,7 +80,7 @@ class RAMController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -95,7 +96,7 @@ class RAMController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -110,7 +111,7 @@ class RAMController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -125,7 +126,7 @@ class RAMController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -139,7 +140,7 @@ class RAMController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/SOFTWAREController.php b/app/Controllers/Admin/Part/SOFTWAREController.php index 90a64ca..94cf18c 100644 --- a/app/Controllers/Admin/Part/SOFTWAREController.php +++ b/app/Controllers/Admin/Part/SOFTWAREController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class SOFTWAREController extends PartController { @@ -79,7 +80,7 @@ class SOFTWAREController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -95,7 +96,7 @@ class SOFTWAREController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -110,7 +111,7 @@ class SOFTWAREController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -125,7 +126,7 @@ class SOFTWAREController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -139,7 +140,7 @@ class SOFTWAREController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/Part/SWITCHController.php b/app/Controllers/Admin/Part/SWITCHController.php index 293599a..5cc62eb 100644 --- a/app/Controllers/Admin/Part/SWITCHController.php +++ b/app/Controllers/Admin/Part/SWITCHController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class SWITCHController extends PartController { @@ -100,7 +101,7 @@ class SWITCHController extends PartController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -116,7 +117,7 @@ class SWITCHController extends PartController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -131,7 +132,7 @@ class SWITCHController extends PartController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -146,7 +147,7 @@ class SWITCHController extends PartController try { $entity = $this->delete_process($uid); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -160,7 +161,7 @@ class SWITCHController extends PartController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/PaymentController.php b/app/Controllers/Admin/PaymentController.php index 04744f4..61819b1 100644 --- a/app/Controllers/Admin/PaymentController.php +++ b/app/Controllers/Admin/PaymentController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class PaymentController extends AdminController { @@ -85,7 +86,7 @@ class PaymentController extends AdminController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof PaymentEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -101,7 +102,7 @@ class PaymentController extends AdminController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof PaymentEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -116,7 +117,7 @@ class PaymentController extends AdminController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof PaymentEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -131,7 +132,7 @@ class PaymentController extends AdminController try { $entity = $this->delete_process($uid); if (!$entity instanceof PaymentEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -145,7 +146,7 @@ class PaymentController extends AdminController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof PaymentEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PaymentEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/Controllers/Admin/UserController.php b/app/Controllers/Admin/UserController.php index 1665cf9..c09141d 100644 --- a/app/Controllers/Admin/UserController.php +++ b/app/Controllers/Admin/UserController.php @@ -9,6 +9,7 @@ use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Validation\Exceptions\ValidationException; use Psr\Log\LoggerInterface; +use RuntimeException; class UserController extends AdminController { @@ -81,7 +82,7 @@ class UserController extends AdminController $this->action_init_process($action); $entity = $this->create_process(); if (!$entity instanceof UserEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); } return $this->create_result_process($entity); } catch (ValidationException $e) { @@ -97,7 +98,7 @@ class UserController extends AdminController $this->action_init_process($action); $entity = $this->modify_form_process($uid); if (!$entity instanceof UserEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_form_result_process($action); @@ -112,7 +113,7 @@ class UserController extends AdminController $this->action_init_process($action); $entity = $this->modify_process($uid); if (!$entity instanceof UserEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->modify_result_process($entity); @@ -127,7 +128,7 @@ class UserController extends AdminController try { $entity = $this->delete_process($uid); if (!$entity instanceof UserEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); } return $this->delete_result_process($entity); } catch (\Exception $e) { @@ -141,7 +142,7 @@ class UserController extends AdminController $this->action_init_process($action); $entity = $this->view_process($uid); if (!$entity instanceof UserEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 UserEntity만 가능"); } $this->addViewDatas('entity', $entity); return $this->view_result_process($action); diff --git a/app/DTOs/Auth/AuthDTO.php b/app/DTOs/Auth/AuthDTO.php index 7d9c2c4..dc318c8 100644 --- a/app/DTOs/Auth/AuthDTO.php +++ b/app/DTOs/Auth/AuthDTO.php @@ -10,5 +10,4 @@ abstract class AuthDTO extends CommonDTO { parent::__construct(); } - abstract public function toArray(); } diff --git a/app/DTOs/CommonDTO.php b/app/DTOs/CommonDTO.php index 016d8bd..678e5df 100644 --- a/app/DTOs/CommonDTO.php +++ b/app/DTOs/CommonDTO.php @@ -18,7 +18,7 @@ abstract class CommonDTO "Undefined property or method: " . static::class . "::{$name}" ); } - public function toArray(): array + final public function toArray(): array { // $this가 가진 모든 public 프로퍼티와 그 값을 배열로 반환합니다. return get_object_vars($this); diff --git a/app/Services/Customer/AccountService.php b/app/Services/Customer/AccountService.php index 9d5a749..1382359 100644 --- a/app/Services/Customer/AccountService.php +++ b/app/Services/Customer/AccountService.php @@ -66,7 +66,7 @@ class AccountService extends CustomerService } $entity = parent::create($dto); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class AccountService extends CustomerService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class AccountService extends CustomerService } $entity = parent::modify($uid, $dto); if (!$entity instanceof AccountEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 AccountEntity만 가능"); } return $entity; } diff --git a/app/Services/Customer/ClientService.php b/app/Services/Customer/ClientService.php index 68b8ae4..7bbfa52 100644 --- a/app/Services/Customer/ClientService.php +++ b/app/Services/Customer/ClientService.php @@ -66,7 +66,7 @@ class ClientService extends CustomerService } $entity = parent::create($dto); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class ClientService extends CustomerService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class ClientService extends CustomerService } $entity = parent::modify($uid, $dto); if (!$entity instanceof ClientEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ClientEntity만 가능"); } return $entity; } diff --git a/app/Services/Customer/CouponService.php b/app/Services/Customer/CouponService.php index 879d5d0..f60c2fa 100644 --- a/app/Services/Customer/CouponService.php +++ b/app/Services/Customer/CouponService.php @@ -66,7 +66,7 @@ class CouponService extends CustomerService } $entity = parent::create($dto); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class CouponService extends CustomerService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class CouponService extends CustomerService } $entity = parent::modify($uid, $dto); if (!$entity instanceof CouponEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CouponEntity만 가능"); } return $entity; } diff --git a/app/Services/Customer/PointService.php b/app/Services/Customer/PointService.php index 577a947..3b1f35a 100644 --- a/app/Services/Customer/PointService.php +++ b/app/Services/Customer/PointService.php @@ -66,7 +66,7 @@ class PointService extends CustomerService } $entity = parent::create($dto); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class PointService extends CustomerService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class PointService extends CustomerService } $entity = parent::modify($uid, $dto); if (!$entity instanceof PointEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 PointEntity만 가능"); } return $entity; } diff --git a/app/Services/Equipment/LineService.php b/app/Services/Equipment/LineService.php index 6e98d01..285ebb1 100644 --- a/app/Services/Equipment/LineService.php +++ b/app/Services/Equipment/LineService.php @@ -66,7 +66,7 @@ class LineService extends EquipmentService } $entity = parent::create($dto); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class LineService extends EquipmentService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class LineService extends EquipmentService } $entity = parent::modify($uid, $dto); if (!$entity instanceof LineEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 LineEntity만 가능"); } return $entity; } diff --git a/app/Services/Equipment/ServerPartService.php b/app/Services/Equipment/ServerPartService.php index 4b0250c..b240ab6 100644 --- a/app/Services/Equipment/ServerPartService.php +++ b/app/Services/Equipment/ServerPartService.php @@ -66,7 +66,7 @@ class ServerPartService extends EquipmentService } $entity = parent::create($dto); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class ServerPartService extends EquipmentService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class ServerPartService extends EquipmentService } $entity = parent::modify($uid, $dto); if (!$entity instanceof ServerPartEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerPartEntity만 가능"); } return $entity; } diff --git a/app/Services/Equipment/ServerService.php b/app/Services/Equipment/ServerService.php index de47edf..d14602e 100644 --- a/app/Services/Equipment/ServerService.php +++ b/app/Services/Equipment/ServerService.php @@ -66,7 +66,7 @@ class ServerService extends EquipmentService } $entity = parent::create($dto); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class ServerService extends EquipmentService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class ServerService extends EquipmentService } $entity = parent::modify($uid, $dto); if (!$entity instanceof ServerEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/CPUService.php b/app/Services/Part/CPUService.php index c0b9c8f..6a10c9b 100644 --- a/app/Services/Part/CPUService.php +++ b/app/Services/Part/CPUService.php @@ -66,7 +66,7 @@ class CPUService extends PartService } $entity = parent::create($dto); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class CPUService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class CPUService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof CPUEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CPUEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/CSService.php b/app/Services/Part/CSService.php index 3909b90..19689c5 100644 --- a/app/Services/Part/CSService.php +++ b/app/Services/Part/CSService.php @@ -66,7 +66,7 @@ class CSService extends PartService } $entity = parent::create($dto); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class CSService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class CSService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof CSEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 CSEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/DISKService.php b/app/Services/Part/DISKService.php index 5dd8333..5084b1a 100644 --- a/app/Services/Part/DISKService.php +++ b/app/Services/Part/DISKService.php @@ -66,7 +66,7 @@ class DISKService extends PartService } $entity = parent::create($dto); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class DISKService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class DISKService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof DISKEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 DISKEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/IPService.php b/app/Services/Part/IPService.php index 59d36f6..3150651 100644 --- a/app/Services/Part/IPService.php +++ b/app/Services/Part/IPService.php @@ -66,7 +66,7 @@ class IPService extends PartService } $entity = parent::create($dto); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class IPService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class IPService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof IPEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 IPEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/RAMService.php b/app/Services/Part/RAMService.php index af9ddc4..9c310dd 100644 --- a/app/Services/Part/RAMService.php +++ b/app/Services/Part/RAMService.php @@ -66,7 +66,7 @@ class RAMService extends PartService } $entity = parent::create($dto); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class RAMService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class RAMService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof RAMEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 RAMEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/SOFTWAREService.php b/app/Services/Part/SOFTWAREService.php index 05572b7..1262d31 100644 --- a/app/Services/Part/SOFTWAREService.php +++ b/app/Services/Part/SOFTWAREService.php @@ -66,7 +66,7 @@ class SOFTWAREService extends PartService } $entity = parent::create($dto); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class SOFTWAREService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class SOFTWAREService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof SOFTWAREEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SOFTWAREEntity만 가능"); } return $entity; } diff --git a/app/Services/Part/SWITCHService.php b/app/Services/Part/SWITCHService.php index 1239621..fa05f62 100644 --- a/app/Services/Part/SWITCHService.php +++ b/app/Services/Part/SWITCHService.php @@ -66,7 +66,7 @@ class SWITCHService extends PartService } $entity = parent::create($dto); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } return $entity; } @@ -74,7 +74,7 @@ class SWITCHService extends PartService { $entity = parent::modify_process($uid, $formDatas); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } return $entity; } @@ -85,7 +85,7 @@ class SWITCHService extends PartService } $entity = parent::modify($uid, $dto); if (!$entity instanceof SWITCHEntity) { - throw new \RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); + throw new RuntimeException(__METHOD__ . "에서 오류발생:Return Type은 SWITCHEntity만 가능"); } return $entity; }