| 1 | <?php |
||
| 6 | class UserFormsCheckboxSetField extends CheckboxSetField { |
||
|
|
|||
| 7 | |||
| 8 | /** |
||
| 9 | * jQuery validate requires that the value of the option does not contain |
||
| 10 | * the actual value of the input. |
||
| 11 | * |
||
| 12 | * @return ArrayList |
||
| 13 | */ |
||
| 14 | public function getOptions() { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function getSourceAsArray() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | * |
||
| 39 | * @param Validator $validator |
||
| 40 | * |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function validate($validator) |
||
| 65 | } |
||
| 66 |
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.