Skip to content
Corex

SubmissionReplyDraftStore

Corex\Config\Submissions\SubmissionReplyDraftStore · interface · Config layer

Where a reply somebody has begun is kept until it is sent or discarded: one draft to a person and a submission.

find(int $submissionId, int $userId): ?SubmissionReplyDraft

Section titled “find(int $submissionId, int $userId): ?SubmissionReplyDraft”

keep(int $submissionId, int $userId, SubmissionReplyDraft $draft): void

Section titled “keep(int $submissionId, int $userId, SubmissionReplyDraft $draft): void”

discard(int $submissionId, int $userId): void

Section titled “discard(int $submissionId, int $userId): void”

Removes that person’s draft for that submission. Nothing happens where there is none.

Removes every draft a person left, on every submission: they are no longer on the site.