[], 'atttributes' => []]): array { $tempOptions = ['' => lang("{$this->getAttribute('class_path')}.label.{$field}") . " 선택"]; switch ($field) { case 'part_uid': $tempOptions = []; foreach (SERVERPART['ALL_PARTTYPES'] as $type) { $partService = $this->getPartService($type); $tempOptions[$type] = ["" => [ 'value' => "", 'text' => lang("{$this->getAttribute('class_path')}.TYPE.{$type}") . " 선택", ]]; foreach ($this->getFormOption_process($partService, $action, $field, $formDatas) as $tempEntity) { $tempOptions[$type][$tempEntity->getPK()] = [ 'value' => $tempEntity->getPK(), 'text' => $tempEntity->getTitle(), 'data-title' => $tempEntity->getTitle(), 'data-price' => $tempEntity->getPrice() ]; } } $options['options'] = $tempOptions; break; case 'serverinfo_uid': foreach ($this->getFormOption_process(service('equipment_serverservice'), $action, $field, $formDatas) as $tempEntity) { $tempOptions[$tempEntity->getPK()] = $tempEntity->getTitle(); // $options['attributes'][$tempEntity->getPK()] = ['data-role' => implode(DEFAULTS['DELIMITER_ROLE'], $tempEntity->getRole())]; } $options['options'] = $tempOptions; break; case 'serviceinfo_uid': foreach ($this->getFormOption_process(service('customer_clientservice'), $action, $field, $formDatas) as $tempEntity) { $tempOptions[$tempEntity->getPK()] = $tempEntity->getTitle(); // $options['attributes'][$tempEntity->getPK()] = ['data-role' => implode(DEFAULTS['DELIMITER_ROLE'], $tempEntity->getRole())]; } $options['options'] = $tempOptions; break; default: $options = parent::getFormOption($action, $field, $formDatas, $options); break; } return $options; } }