trafficmonitor init...2

This commit is contained in:
choi.jh 2025-11-12 16:27:48 +09:00
parent 4b308d2f36
commit 3d8485c0d4

View File

@ -17,6 +17,13 @@ class Collector extends CommonController
parent::initController($request, $response, $logger);
if ($this->service === null) {
$this->service = service('collectorservice');
$fields = ['trafficinfo_uid', 'in', 'out', 'raw_in', 'raw_out'];
$filters = ['trafficinfo_uid'];
$this->service->getFormService()->setFormFields($fields);
$this->service->getFormService()->setFormRules('create', $fields);
$this->service->getFormService()->setFormFilters($filters);
$this->service->getFormService()->setFormOptions($filters);
$this->service->getFormService()->setBatchjobFilters($filters);
}
$this->addActionPaths($this::PATH);
}