DataExportStore
Corex\Config\DataModels\DataExportStore · interface · Config layer
Public API
Section titled “Public API”create(DataExportRun $run): DataExportRun
Section titled “create(DataExportRun $run): DataExportRun”attachJob(int $id, int $jobId): DataExportRun
Section titled “attachJob(int $id, int $jobId): DataExportRun”find(int $id): ?DataExportRun
Section titled “find(int $id): ?DataExportRun”findByHash(string $hash): ?DataExportRun
Section titled “findByHash(string $hash): ?DataExportRun”history(int $actorId, bool $manageAll, int $limit): array
Section titled “history(int $actorId, bool $manageAll, int $limit): array”leaveOut(int $id, string $sourceKey): DataExportRun
Section titled “leaveOut(int $id, string $sourceKey): DataExportRun”Marks one model of a run as not read: it could not be, when its turn came.
saveFile(int $id, array $file): void
Section titled “saveFile(int $id, array $file): void”Records where a finished export’s file is, and how large it is.
file(int $id): ?array
Section titled “file(int $id): ?array”artifact(int $id): ?string
Section titled “artifact(int $id): ?string”The bytes 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.
finish(int $id, int $rows): void
Section titled “finish(int $id, int $rows): void”removeFile(int $id, string $reason, int $actorId): DataExportRun
Section titled “removeFile(int $id, string $reason, int $actorId): DataExportRun”Removes a run’s file and keeps its entry, which then says why the file is gone.
holdingFilesBefore(DateTimeImmutable $cutoff, int $limit): array
Section titled “holdingFilesBefore(DateTimeImmutable $cutoff, int $limit): array”The runs made before a moment that still hold a file, oldest first.