API / Minn\Content / PostStatus

PostStatus enum

Minn\Content\PostStatus · public/minn/src/Minn/Content/PostStatus.php · 42 lines

The statuses a post row can hold; the value is the column's own spelling.

Cases

casePublish = 'publish'
caseDraft = 'draft'
casePending = 'pending'
casePrivate = 'private'
caseFuture = 'future'
caseTrash = 'trash'
caseInherit = 'inherit'
caseAutoDraft = 'auto-draft'

Public

staticof(Minn\Content\PostRecord|array $row): ?self#

A row's status, or null for a value no enum case spells (a plugin's own status).

methodisLive(): bool#

Publish, future and private are live: they count, they link, they are not drafts.

methodisPublic(): bool#

Whether the status shows the post to anonymous readers.

staticvalues(array $statuses): array#

The stored strings of these statuses.

$statuseslist<self>@return list<string> the column values, for a query