| 1 | <?php |
||
| 10 | class Moo_EditableFieldNumeric extends Moo_EditableField |
||
| 11 | { |
||
| 12 | private static $singular_name = 'Numeric Field'; |
||
| 13 | private static $plural_name = 'Numeric Fields'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * List of allowed custom settings fields. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $customSettingsFields = [ |
||
| 21 | 'MinValue', 'MaxValue', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | 1 | protected function initFormField() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Get extra validation fields. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function getFieldValidationOptions() |
||
| 47 | } |
||
| 48 |