xref: /plugin/combo/ComboStrap/DataType.php (revision c3437056399326d621a01da73b649707fbb0ae69)
1<?php
2
3
4namespace ComboStrap;
5
6
7class DataType
8{
9
10    /**
11     * The property name when the type value is persisted
12     */
13    public const PROPERTY_NAME = "type";
14
15
16    /**
17     * An object with several children metadata
18     * An entity
19     * A group of metadata
20     */
21    public const TABULAR_TYPE_VALUE = "tabular";
22    /**
23     * Text with carriage return
24     */
25    public const PARAGRAPH_TYPE_VALUE = "paragraph";
26    /**
27     * True/False
28     */
29    public const BOOLEAN_TYPE_VALUE = "boolean";
30
31    /**
32     * A couple of words without any carriage return
33     */
34    public const TEXT_TYPE_VALUE = "text";
35    /**
36     * Date Time
37     */
38    public const DATETIME_TYPE_VALUE = "datetime";
39    /**
40     * A string but in Json
41     */
42    public const JSON_TYPE_VALUE = "json";
43
44    /**
45     * Integer
46     */
47    public const INTEGER_TYPE_VALUE = "integer";
48
49
50    /**
51     * The constant value
52     */
53    public const TYPES = [
54        DataType::TEXT_TYPE_VALUE,
55        DataType::TABULAR_TYPE_VALUE,
56        DataType::DATETIME_TYPE_VALUE,
57        DataType::PARAGRAPH_TYPE_VALUE,
58        DataType::JSON_TYPE_VALUE,
59        DataType::BOOLEAN_TYPE_VALUE,
60    ];
61
62
63}
64