| 1 | <?php |
||
| 8 | class EditableOffSpringField extends EditableFormField |
||
|
|
|||
| 9 | { |
||
| 10 | public static $singular_name = 'Offspring field'; |
||
| 11 | |||
| 12 | public static $plural_name = 'Offspring fields'; |
||
| 13 | |||
| 14 | public function getFieldConfiguration() |
||
| 19 | |||
| 20 | public function getFormField() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Return the validation information related to this field. This is |
||
| 27 | * interrupted as a JSON object for validate plugin and used in the |
||
| 28 | * PHP. |
||
| 29 | * |
||
| 30 | * @see http://docs.jquery.com/Plugins/Validation/Methods |
||
| 31 | * @return Array |
||
| 32 | */ |
||
| 33 | public function getValidation() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Return the Value of this Field |
||
| 41 | * |
||
| 42 | * @return String |
||
| 43 | */ |
||
| 44 | public function getValueFromData($data) |
||
| 54 | |||
| 55 | public function Icon() |
||
| 59 | } |
||
| 60 |
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.