dbms_init...1
This commit is contained in:
parent
81fd8d9d44
commit
fcc7744656
@ -77,8 +77,7 @@ class ServiceItemController extends CustomerController
|
|||||||
if (!$item_type) {
|
if (!$item_type) {
|
||||||
throw new \Exception(__FUNCTION__ . "에서 item_type이 지정되지 않았습니다.");
|
throw new \Exception(__FUNCTION__ . "에서 item_type이 지정되지 않았습니다.");
|
||||||
}
|
}
|
||||||
//$item_type(CPU,RAM,STORAGE등)에 따라 선언된 getFormFieldOption사용 됨
|
$options = $this->getServiceService()->getFilterOptionsByItemType($item_type);
|
||||||
$options = $this->getFilterFieldOption($item_type);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$options = parent::getFormFieldOption($field, $options);
|
$options = parent::getFormFieldOption($field, $options);
|
||||||
|
|||||||
@ -109,7 +109,6 @@ abstract class CommonController extends BaseController
|
|||||||
{
|
{
|
||||||
return $this->_control['field_rules'] ?? [];
|
return $this->_control['field_rules'] ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
final protected function setIndexFields(array $fields): void
|
final protected function setIndexFields(array $fields): void
|
||||||
{
|
{
|
||||||
$this->_control['index_fields'] = $fields;
|
$this->_control['index_fields'] = $fields;
|
||||||
@ -149,18 +148,10 @@ abstract class CommonController extends BaseController
|
|||||||
}
|
}
|
||||||
$this->_control['filter_optons'][$field] = $options;
|
$this->_control['filter_optons'][$field] = $options;
|
||||||
}
|
}
|
||||||
final protected function setFilterFieldOptions(array $options): void
|
|
||||||
{
|
|
||||||
$this->_control['filter_optons'] = $options;
|
|
||||||
}
|
|
||||||
final protected function getFilterFieldOption(string $field): array
|
final protected function getFilterFieldOption(string $field): array
|
||||||
{
|
{
|
||||||
return $this->_control['filter_optons'][$field] ?? [];
|
return $this->_control['filter_optons'][$field] ?? [];
|
||||||
}
|
}
|
||||||
final protected function getFilterFieldOptions(): array
|
|
||||||
{
|
|
||||||
return $this->_control['filter_optons'] ?? [];
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function initAction(string $action, $fields = []): void
|
protected function initAction(string $action, $fields = []): void
|
||||||
{ //각 Field 초기화
|
{ //각 Field 초기화
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user