| 1 | <?php |
||
| 18 | class EditableDateField extends EditableFormField |
||
| 19 | { |
||
| 20 | private static $singular_name = 'Date Field'; |
||
| 21 | |||
| 22 | private static $plural_name = 'Date Fields'; |
||
| 23 | |||
| 24 | private static $has_placeholder = true; |
||
| 25 | |||
| 26 | private static $db = [ |
||
| 27 | 'DefaultToToday' => 'Boolean' // From customsettings |
||
| 28 | ]; |
||
| 29 | |||
| 30 | private static $table_name = 'EditableDateField'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return FieldList |
||
| 34 | */ |
||
| 35 | public function getCMSFields() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Return the form field |
||
| 53 | * |
||
| 54 | */ |
||
| 55 | public function getFormField() |
||
| 69 | } |
||
| 70 |