1 | <?php namespace Arcanesoft\Blog\Entities; |
||
9 | class PostStatus |
||
10 | { |
||
11 | /* ------------------------------------------------------------------------------------------------ |
||
12 | | Constants |
||
13 | | ------------------------------------------------------------------------------------------------ |
||
14 | */ |
||
15 | const STATUS_DRAFT = 'draft'; |
||
16 | const STATUS_PUBLISHED = 'published'; |
||
17 | |||
18 | /* ------------------------------------------------------------------------------------------------ |
||
19 | | Main Functions |
||
20 | | ------------------------------------------------------------------------------------------------ |
||
21 | */ |
||
22 | /** |
||
23 | * Get all posts status keys. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | public static function keys() |
||
34 | |||
35 | /** |
||
36 | * Get all posts status |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | public static function all() |
||
46 | |||
47 | /** |
||
48 | * Get a post status. |
||
49 | * |
||
50 | * @param string $key |
||
51 | * |
||
52 | * @return null|string |
||
53 | */ |
||
54 | public static function get($key) |
||
58 | } |
||
59 |