Skip to content
Corex

SubmissionExportStore

Corex\Config\Submissions\SubmissionExportStore · interface · Config layer

create(SubmissionExportRun $run): SubmissionExportRun

Section titled “create(SubmissionExportRun $run): SubmissionExportRun”

attachJob(int $runId, int $jobId): SubmissionExportRun

Section titled “attachJob(int $runId, int $jobId): SubmissionExportRun”

findByHash(string $inputHash): ?SubmissionExportRun

Section titled “findByHash(string $inputHash): ?SubmissionExportRun”

history(SubmissionAccessScope $scope, int $limit): array

Section titled “history(SubmissionAccessScope $scope, int $limit): array”

saveFile(int $runId, array $file, int $recordCount): void

Section titled “saveFile(int $runId, array $file, int $recordCount): void”

Records where a finished export’s file is.

removeFile(int $runId, string $reason, int $actorId): SubmissionExportRun

Section titled “removeFile(int $runId, string $reason, int $actorId): SubmissionExportRun”

Removes an export’s file and keeps its entry, which then says why the file went.

holdingFilesBefore(DateTimeImmutable $cutoff, int $limit): array

Section titled “holdingFilesBefore(DateTimeImmutable $cutoff, int $limit): array”

The CSV text of an export made before files were kept on disk (spec 068). Nothing writes one any more; this is how those that exist are still downloaded.