| @@ -9,9 +9,8 @@ | ||
| 9 | 9 | class FrmFieldSelect extends FrmFieldType { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @var string |
| 13 | - * | |
| 14 | 13 | * @since 3.0 |
| 15 | 14 | */ |
| 16 | 15 | protected $type = 'select'; |
| 17 | 16 | |
| @@ -16,9 +15,8 @@ | ||
| 16 | 15 | protected $type = 'select'; |
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * @var bool |
| 20 | - * | |
| 21 | 19 | * @since 3.0 |
| 22 | 20 | */ |
| 23 | 21 | protected $holds_email_values = true; |
| 24 | 22 | |
| @@ -25,22 +23,15 @@ | ||
| 25 | 23 | protected function include_form_builder_file() { |
| 26 | 24 | return $this->include_front_form_file(); |
| 27 | 25 | } |
| 28 | 26 | |
| 29 | - /** | |
| 30 | - * @return bool[] | |
| 31 | - */ | |
| 32 | 27 | protected function field_settings_for_type() { |
| 33 | 28 | return array( |
| 34 | 29 | 'clear_on_focus' => true, |
| 35 | - 'size' => true, | |
| 36 | - 'invalid' => true, | |
| 30 | + 'size' => true, | |
| 37 | 31 | ); |
| 38 | 32 | } |
| 39 | 33 | |
| 40 | - /** | |
| 41 | - * @return string[] | |
| 42 | - */ | |
| 43 | 34 | protected function new_field_settings() { |
| 44 | 35 | return array( |
| 45 | 36 | 'options' => serialize( |
| 46 | 37 | array( |
| @@ -54,11 +45,8 @@ | ||
| 54 | 45 | /** |
| 55 | 46 | * Get the type of field being displayed. |
| 56 | 47 | * |
| 57 | 48 | * @since 4.02.01 |
| 58 | - * | |
| 59 | - * @param array|object $field | |
| 60 | - * | |
| 61 | 49 | * @return array |
| 62 | 50 | */ |
| 63 | 51 | public function displayed_field_type( $field ) { |
| 64 | 52 | return array( |
| @@ -67,27 +55,18 @@ | ||
| 67 | 55 | } |
| 68 | 56 | |
| 69 | 57 | /** |
| 70 | 58 | * @since 4.0 |
| 71 | - * | |
| 72 | - * @param array $args Includes 'field', 'display', and 'values'. | |
| 73 | - * | |
| 74 | - * @return void | |
| 59 | + * @param array $args - Includes 'field', 'display', and 'values' | |
| 75 | 60 | */ |
| 76 | 61 | public function show_extra_field_choices( $args ) { |
| 77 | 62 | $this->auto_width_setting( $args ); |
| 78 | 63 | } |
| 79 | 64 | |
| 80 | - /** | |
| 81 | - * @return string | |
| 82 | - */ | |
| 83 | 65 | protected function include_front_form_file() { |
| 84 | 66 | return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/front-end/dropdown-field.php'; |
| 85 | 67 | } |
| 86 | 68 | |
| 87 | - /** | |
| 88 | - * @return bool | |
| 89 | - */ | |
| 90 | 69 | protected function show_readonly_hidden() { |
| 91 | 70 | return true; |
| 92 | 71 | } |
| 93 | 72 | |