1 | <?php |
||
10 | class EditableNumericField extends EditableFormField |
||
|
|||
11 | { |
||
12 | |||
13 | private static $singular_name = 'Numeric Field'; |
||
14 | |||
15 | private static $plural_name = 'Numeric Fields'; |
||
16 | |||
17 | private static $has_placeholder = true; |
||
18 | |||
19 | private static $db = array( |
||
20 | 'MinValue' => 'Int', |
||
21 | 'MaxValue' => 'Int' |
||
22 | ); |
||
23 | |||
24 | public function getSetsOwnError() |
||
28 | |||
29 | /** |
||
30 | * @return NumericField |
||
31 | */ |
||
32 | public function getFormField() |
||
43 | |||
44 | public function getFieldValidationOptions() |
||
57 | |||
58 | /** |
||
59 | * Updates a formfield with the additional metadata specified by this field |
||
60 | * |
||
61 | * @param FormField $field |
||
62 | */ |
||
63 | protected function updateFormField($field) |
||
75 | } |
||
76 |
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.