1 | <?php |
||
5 | class Element |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * indicates that element is not archived or trashed |
||
10 | */ |
||
11 | public const STATUS_ACTIVE = 'active'; |
||
12 | |||
13 | /** |
||
14 | * indicates that element is archived and should no longer be displayed on public forms |
||
15 | * but may still be required due to existing answers when form was completed prior to input being archived |
||
16 | */ |
||
17 | public const STATUS_ARCHIVED = 'archived'; |
||
18 | |||
19 | /** |
||
20 | * indicates that element should be automatically added to newly created forms |
||
21 | */ |
||
22 | public const STATUS_DEFAULT = 'default'; |
||
23 | |||
24 | /** |
||
25 | * indicates that element is no longer needed, has no existing answers, and can be moved to the trash |
||
26 | */ |
||
27 | public const STATUS_TRASHED = 'trashed'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private $valid_status_options; |
||
33 | |||
34 | |||
35 | public function __construct() |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @param bool $constants_only |
||
51 | * @return array |
||
52 | */ |
||
53 | public function validStatusOptions(bool $constants_only = false): array |
||
59 | } |
||
60 |