Total Complexity | 6 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
15 | class Date extends Field |
||
16 | { |
||
17 | /** |
||
18 | * The DDS data type to store the value of the field |
||
19 | * @var string |
||
20 | */ |
||
21 | public $ddsDataType = 'date'; |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function getProperties() |
||
27 | { |
||
28 | return array_merge(parent::getProperties(), ['format']); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | public function getFilterField() |
||
35 | { |
||
36 | return [ |
||
37 | 'class' => 'neon\core\form\fields\el\DateRange' |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get the picker format |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getFormat() |
||
46 | { |
||
47 | return neon()->formatter->dateFormat; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function getValueDisplay($context='') |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | public function registerScripts($view) |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | public function getComponentDetails() |
||
75 | } |