| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class DateTime extends Field |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The DDS data type to store the value of the field |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public $ddsDataType = 'datetime'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function registerScripts($view) |
||
| 26 | { |
||
| 27 | ElAsset::register($view); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function getProperties() |
||
| 34 | { |
||
| 35 | return array_merge(parent::getProperties(), ['format']); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the picker format |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getFormat() |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | public function getValueDisplay($context='') |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @inheritdoc |
||
| 57 | */ |
||
| 58 | public function getComponentDetails() |
||
| 64 | } |