SubmissionReplyDrafts
Corex\Config\Submissions\SubmissionReplyDrafts · class · Config layer
A person’s unsent reply to a submission, kept for them until they send or discard it (spec 106, FR-006). It is theirs alone: nobody else is shown it, and it is kept only for a submission they can reach. On the server and not in the browser, so that it is there on another machine.
Public API
Section titled “Public API”__construct(SubmissionWorkflowStore $submissions, SubmissionReplyDraftStore $drafts)
Section titled “__construct(SubmissionWorkflowStore $submissions, SubmissionReplyDraftStore $drafts)”of(int $actorId, int $submissionId): ?array
Section titled “of(int $actorId, int $submissionId): ?array”The draft of the person asking, for a submission they have already been shown.
keep(SubmissionAccessScope $scope, int $submissionId, string $subject, string $htmlBody, string $thread): ?array
Section titled “keep(SubmissionAccessScope $scope, int $submissionId, string $subject, string $htmlBody, string $thread): ?array”Writes down what is written so far. A draft of nothing is discarded.