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.
Uses 1
Used by 2
Cases
| case | Publish = 'publish' | |
| case | Draft = 'draft' | |
| case | Pending = 'pending' | |
| case | Private = 'private' | |
| case | Future = 'future' | |
| case | Trash = 'trash' | |
| case | Inherit = 'inherit' | |
| case | AutoDraft = 'auto-draft' |
Public
| static | of(Minn\Content\PostRecord|array $row): ?self# | A row's status, or null for a value no enum case spells (a plugin's own status). | |||
| method | isLive(): bool# | Publish, future and private are live: they count, they link, they are not drafts. | |||
| method | isPublic(): bool# | Whether the status shows the post to anonymous readers. | |||
| static | values(array $statuses): array# | The stored strings of these statuses.
|
Nothing matches.