Skip to content
Corex

SubmissionsReader

Corex\Config\Data\SubmissionsReader · interface · Config layer

Reads stored form submissions for the Data screen. Split from SubmissionsSource so the row-shaping is unit-testable with a stub while the WP_Query/meta access stays at the boundary (WpSubmissionsReader).

The records matching a query (search / form filter / sort / pagination), spec 045.

The total records matching a query (for pagination).

One record by id, or null if absent.

The distinct submitted field keys seen across a sample of recent submissions — the basis for the derived schema. Order is first-seen.

Real submission counts keyed by Y-m-d for the last $days days (sparse — only days that have submissions appear; the caller zero-fills the rest).