dbmsv4 init...3
This commit is contained in:
parent
486e83a0ec
commit
8349f3318b
@ -203,6 +203,9 @@ abstract class CommonHelper
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
public function getListFilter(string $field, mixed $value, array $viewDatas, array $extras = []): string
|
public function getListFilter(string $field, mixed $value, array $viewDatas, array $extras = []): string
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Customer;
|
namespace App\Helpers\Customer;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class ClientHelper extends CustomerHelper
|
class ClientHelper extends CustomerHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -93,6 +95,9 @@ class ClientHelper extends CustomerHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
} //
|
} //
|
||||||
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Customer;
|
namespace App\Helpers\Customer;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class ServiceHelper extends CustomerHelper
|
class ServiceHelper extends CustomerHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -57,6 +59,9 @@ class ServiceHelper extends CustomerHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
public function getListLabel(string $field, string $label, array $viewDatas, array $extras = []): string
|
public function getListLabel(string $field, string $label, array $viewDatas, array $extras = []): string
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Customer\Wallet;
|
namespace App\Helpers\Customer\Wallet;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class AccountHelper extends WalletHelper
|
class AccountHelper extends WalletHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -49,6 +51,9 @@ class AccountHelper extends WalletHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Customer\Wallet;
|
namespace App\Helpers\Customer\Wallet;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class CouponHelper extends WalletHelper
|
class CouponHelper extends WalletHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -18,6 +20,9 @@ class CouponHelper extends WalletHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Customer\Wallet;
|
namespace App\Helpers\Customer\Wallet;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class PointHelper extends WalletHelper
|
class PointHelper extends WalletHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -18,6 +20,9 @@ class PointHelper extends WalletHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Equipment;
|
namespace App\Helpers\Equipment;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class CHASSISHelper extends EquipmentHelper
|
class CHASSISHelper extends EquipmentHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -18,6 +20,9 @@ class CHASSISHelper extends EquipmentHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
||||||
|
|||||||
@ -68,6 +68,9 @@ class ServerHelper extends EquipmentHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
if (!array_key_exists($value, $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()])) {
|
if (!array_key_exists($value, $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()])) {
|
||||||
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: {$field}에서 {$value}에 해당하는 값이 존재하지 않습니다.");
|
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: {$field}에서 {$value}에 해당하는 값이 존재하지 않습니다.");
|
||||||
}
|
}
|
||||||
$value = $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()][$value];
|
$value = $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()][$value]['text'];
|
||||||
break;
|
break;
|
||||||
case 'SERVER':
|
case 'SERVER':
|
||||||
$value = form_label(
|
$value = form_label(
|
||||||
@ -93,6 +93,9 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
namespace App\Helpers\Part;
|
namespace App\Helpers\Part;
|
||||||
|
|
||||||
use App\Helpers\CommonHelper;
|
use App\Helpers\CommonHelper;
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
abstract class PartHelper extends CommonHelper
|
abstract class PartHelper extends CommonHelper
|
||||||
{
|
{
|
||||||
@ -21,6 +22,9 @@ abstract class PartHelper extends CommonHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Helpers;
|
namespace App\Helpers;
|
||||||
|
|
||||||
|
use RuntimeException;
|
||||||
|
|
||||||
class PaymentHelper extends CommonHelper
|
class PaymentHelper extends CommonHelper
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -95,6 +97,9 @@ class PaymentHelper extends CommonHelper
|
|||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (is_array($value)) {
|
||||||
|
throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<?= $this->extend($viewDatas['layout']['layout']) ?>
|
<?= $this->extend($viewDatas['layout']['layout']) ?>
|
||||||
<?= $this->section('content') ?>
|
<?= $this->section('content') ?>
|
||||||
|
<link href="/css/admin/form.css" media="screen" rel="stylesheet" type="text/css" />
|
||||||
|
<script src="/js/admin/form.js" referrerpolicy="origin"></script>
|
||||||
<link href="/css/<?= $viewDatas['layout']['path'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
<link href="/css/<?= $viewDatas['layout']['path'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
||||||
<style>
|
<style>
|
||||||
textarea.note-box {
|
textarea.note-box {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user