Skip to content
Corex

WpSubmissionsReader

Corex\Config\Data\WpSubmissionsReader · class · Config layer

The WordPress boundary for reading form submissions: queries corex_submission posts (newest first, paginated) and reads their corex_form_slug + corex_field_* meta. The row-shaping lives in SubmissionsSource; this is the only class here that touches WP_Query.

queryInbox(SubmissionInboxQuery $query, SubmissionAccessScope $scope): array

Section titled “queryInbox(SubmissionInboxQuery $query, SubmissionAccessScope $scope): array”

findInbox(int $id, SubmissionAccessScope $scope): ?array

Section titled “findInbox(int $id, SubmissionAccessScope $scope): ?array”

updateWorkflow(int $id, array $changes, string $expectedUpdatedAt): array

Section titled “updateWorkflow(int $id, array $changes, string $expectedUpdatedAt): array”

addWorkflowNote(int $id, int $authorId, string $body, string $visibility): array

Section titled “addWorkflowNote(int $id, int $authorId, string $body, string $visibility): array”

markExported(array $submissionIds, string $exportedAt): void

Section titled “markExported(array $submissionIds, string $exportedAt): void”