| 1 | <?php |
||
| 12 | class UserDateField extends Broarm\EventTickets\UserField |
||
|
|
|||
| 13 | { |
||
| 14 | private static $db = array( |
||
| 15 | 'MinDate' => 'Date', |
||
| 16 | 'MaxDate' => 'Date' |
||
| 17 | ); |
||
| 18 | |||
| 19 | public function getCMSFields() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Create a default text field |
||
| 32 | * |
||
| 33 | * @param string $fieldName |
||
| 34 | * @param null $defaultValue |
||
| 35 | * |
||
| 36 | * @return TextField |
||
| 37 | */ |
||
| 38 | public function createField($fieldName, $defaultValue = null) |
||
| 52 | } |
||
| 53 |
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.