cfmgrv4 init...10
This commit is contained in:
parent
30839cbc7f
commit
dfa4a17413
@ -16,7 +16,9 @@ class ZoneModel extends CommonModel
|
|||||||
protected $primaryKey = self::PK;
|
protected $primaryKey = self::PK;
|
||||||
protected $useAutoIncrement = false;
|
protected $useAutoIncrement = false;
|
||||||
protected $returnType = ZoneEntity::class; //object,array,entity명::class
|
protected $returnType = ZoneEntity::class; //object,array,entity명::class
|
||||||
protected $allowedFields = [self::PK, self::PARENT, self::TITLE, 'name_servers', 'original_name_servers', 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https', 'status', 'updated_at', 'crated_at '];
|
//2025년 6월 6일 always_use_https 값 Invalid value for zone setting always_use_https 오류로 사용않함
|
||||||
|
// protected $allowedFields = [self::PK, self::PARENT, self::TITLE, 'name_servers', 'original_name_servers', 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https', 'status', 'updated_at', 'crated_at '];
|
||||||
|
protected $allowedFields = [self::PK, self::PARENT, self::TITLE, 'name_servers', 'original_name_servers', 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'status', 'updated_at', 'crated_at '];
|
||||||
protected $useTimestamps = true;
|
protected $useTimestamps = true;
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
@ -28,15 +30,21 @@ class ZoneModel extends CommonModel
|
|||||||
}
|
}
|
||||||
public function getFields(): array
|
public function getFields(): array
|
||||||
{
|
{
|
||||||
return [self::PARENT, self::TITLE, 'name_servers', 'original_name_servers', 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https', 'status'];
|
//2025년 6월 6일 always_use_https 값 Invalid value for zone setting always_use_https 오류로 사용않함
|
||||||
|
// return [self::PARENT, self::TITLE, 'name_servers', 'original_name_servers', 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https', 'status'];
|
||||||
|
return [self::PARENT, self::TITLE, 'name_servers', 'original_name_servers', 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'status'];
|
||||||
}
|
}
|
||||||
public function getFilterFields(): array
|
public function getFilterFields(): array
|
||||||
{
|
{
|
||||||
return [self::PARENT, 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https'];
|
//2025년 6월 6일 always_use_https 값 Invalid value for zone setting always_use_https 오류로 사용않함
|
||||||
|
// return [self::PARENT, 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https'];
|
||||||
|
return [self::PARENT, 'plan', 'development_mode', 'ipv6', 'security_level', 'ssl_mode'];
|
||||||
}
|
}
|
||||||
public function getBatchJobFields(): array
|
public function getBatchJobFields(): array
|
||||||
{
|
{
|
||||||
return ['development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https'];
|
//2025년 6월 6일 always_use_https 값 Invalid value for zone setting always_use_https 오류로 사용않함
|
||||||
|
// return ['development_mode', 'ipv6', 'security_level', 'ssl_mode', 'always_use_https'];
|
||||||
|
return ['development_mode', 'ipv6', 'security_level', 'ssl_mode'];
|
||||||
}
|
}
|
||||||
public function getFieldRule(string $action, string $field): string
|
public function getFieldRule(string $action, string $field): string
|
||||||
{
|
{
|
||||||
|
|||||||
@ -13,14 +13,20 @@ class ZoneService extends CloudflareService
|
|||||||
use MylogTrait;
|
use MylogTrait;
|
||||||
private ?AccountEntity $_parent_entity = null;
|
private ?AccountEntity $_parent_entity = null;
|
||||||
private ?ZoneModel $_model = null;
|
private ?ZoneModel $_model = null;
|
||||||
|
//2025년 6월 6일 always_use_https 값 Invalid value for zone setting always_use_https 오류로 사용않함
|
||||||
|
// private array $_setting_fields = [
|
||||||
|
// 'development_mode' => 'off',
|
||||||
|
// 'ipv6' => 'off',
|
||||||
|
// 'security_level' => 'medium',
|
||||||
|
// 'ssl' => 'flexible',
|
||||||
|
// 'always_use_https' => 'off'
|
||||||
|
// ];
|
||||||
private array $_setting_fields = [
|
private array $_setting_fields = [
|
||||||
'development_mode' => 'off',
|
'development_mode' => 'off',
|
||||||
'ipv6' => 'off',
|
'ipv6' => 'off',
|
||||||
'security_level' => 'medium',
|
'security_level' => 'medium',
|
||||||
'ssl' => 'flexible',
|
'ssl' => 'flexible',
|
||||||
// 'always_use_https' => 'off'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user