Skip to content
Corex

WpSubmissionReplyStore

Corex\Config\Submissions\WpSubmissionReplyStore · class · Config layer

Keeps a submission’s replies as its post meta, one row to a reply. With the submission, so that what already carries a submission carries its replies: the trash, a restore, a permanent delete (spec 105). One row to a reply and not one list in one row, so that two people answering at the same moment each add theirs and neither writes over the other’s.

add(int $submissionId, SubmissionReplyRecord $reply): void

Section titled “add(int $submissionId, SubmissionReplyRecord $reply): void”

replace(int $submissionId, SubmissionReplyRecord $was, SubmissionReplyRecord $now): void

Section titled “replace(int $submissionId, SubmissionReplyRecord $was, SubmissionReplyRecord $now): void”