1 | <?php |
||
12 | class UserOptionSetField extends Broarm\EventTickets\UserField |
||
13 | { |
||
14 | /** |
||
15 | * @var OptionsetField |
||
16 | */ |
||
17 | protected $fieldType = 'OptionsetField'; |
||
18 | |||
19 | private static $has_many = array( |
||
|
|||
20 | 'Options' => 'Broarm\EventTickets\UserFieldOption' |
||
21 | ); |
||
22 | |||
23 | public function getCMSFields() |
||
37 | |||
38 | /** |
||
39 | * @param string $fieldName |
||
40 | * @param null $defaultValue |
||
41 | * @param boolean $main check if the field is for the main attendee |
||
42 | * |
||
43 | * @return OptionsetField |
||
44 | */ |
||
45 | public function createField($fieldName, $defaultValue = null, $main = false) |
||
53 | |||
54 | /** |
||
55 | * Get the value by set option |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function getValue() |
||
67 | } |
||
68 |