1 | <?php |
||
13 | class EditableDropdown extends EditableMultipleOptionField |
||
|
|||
14 | { |
||
15 | |||
16 | private static $singular_name = 'Dropdown Field'; |
||
17 | |||
18 | private static $plural_name = 'Dropdowns'; |
||
19 | |||
20 | private static $db = array( |
||
21 | 'UseEmptyString' => 'Boolean', |
||
22 | 'EmptyString' => 'Varchar(255)', |
||
23 | ); |
||
24 | |||
25 | /** |
||
26 | * @return FieldList |
||
27 | */ |
||
28 | public function getCMSFields() |
||
48 | |||
49 | /** |
||
50 | * @return ValidationResult |
||
51 | */ |
||
52 | public function validate() |
||
62 | |||
63 | /** |
||
64 | * @return DropdownField |
||
65 | */ |
||
66 | public function getFormField() |
||
84 | |||
85 | public function getSelectorField(EditableCustomRule $rule, $forOnLoad = false) |
||
89 | } |
||
90 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.