| 1 | <?php |
||
| 12 | class UserNumericField extends Broarm\EventTickets\UserField |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var NumericField |
||
| 16 | */ |
||
| 17 | protected $fieldType = 'NumericField'; |
||
| 18 | |||
| 19 | private static $db = array( |
||
|
|
|||
| 20 | 'Min' => 'Int', |
||
| 21 | 'Max' => 'Int' |
||
| 22 | ); |
||
| 23 | |||
| 24 | public function getCMSFields() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a default text field |
||
| 37 | * |
||
| 38 | * @param string $fieldName |
||
| 39 | * @param null $defaultValue |
||
| 40 | * @param boolean $main check if the field is for the main attendee |
||
| 41 | * |
||
| 42 | * @return NumericField|FormField |
||
| 43 | */ |
||
| 44 | public function createField($fieldName, $defaultValue = null, $main = false) |
||
| 58 | } |
||
| 59 |