Skip to content
Corex

DataExportJobHandler

Corex\Config\DataModels\DataExportJobHandler · class · Config layer

Gathers a Data export a batch at a time, and writes its file when the last batch has arrived. An export holds a part for each model (spec 109, slice 2). A step gathers from one part: the one whose turn it is, read off how many records the job has been through. The file is written once, in the last step, with a sheet for each part.

__construct(DataSourceService $sources, DataExportStore $exports, DataExportFiles $files, ActivityService $activity)

Section titled “__construct(DataSourceService $sources, DataExportStore $exports, DataExportFiles $files, ActivityService $activity)”

handle(BoundedJob $job, int $batchSize): BoundedJob

Section titled “handle(BoundedJob $job, int $batchSize): BoundedJob”