dbmsv2 init...1

This commit is contained in:
choi.jh 2025-08-22 15:01:10 +09:00
parent 601f874179
commit eb25c8291a

View File

@ -89,6 +89,10 @@ abstract class CommonController extends BaseController
}
return $action;
}
final protected function setDefaultValue(string $field, mixed $value)
{
$this->_control['default_values'][$field] = $value;
}
final protected function initAction(string $action, ?array $actionFields = null): void
{
$this->setAction($action);
@ -126,7 +130,7 @@ abstract class CommonController extends BaseController
//Paramter로 전달된 Filter Options용 기본값 정의용
$this->_control['default_values'] = [];
foreach ($this->getControlDatas('actionFilters') as $field) {
$this->_control['default_values'][$field] = $this->request->getVar($field);
$this->setDefaultValue($field, $this->request->getVar($field));
}
// echo var_dump($actionFields);
// echo var_dump($fields);