PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.4
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmFieldValueSelector.php +1 -21 6.35.4 View file →
@@ -4,9 +4,9 @@
4 4 }
5 5
6 6 /**
7 7 * A class for the field value selector
8 - * Used in field conditional logic, action conditional logic, Mailchimp action, etc.
8 + * Used in field conditional logic, action conditional logic, MailChimp action, etc.
9 9 *
10 10 * @since 2.03.05
11 11 */
12 12 class FrmFieldValueSelector {
@@ -101,10 +101,8 @@
101 101 /**
102 102 * Set the db_row property
103 103 *
104 104 * @since 2.03.05
105 - *
106 - * @return void
107 105 */
108 106 private function set_db_row() {
109 107 $where = array(
110 108 'id' => $this->field_id,
@@ -120,10 +118,8 @@
120 118 /**
121 119 * Set the field_key property
122 120 *
123 121 * @since 2.03.05
124 - *
125 - * @return void
126 122 */
127 123 private function set_field_key() {
128 124 $this->field_key = $this->db_row->field_key;
129 125 }
@@ -131,10 +127,8 @@
131 127 /**
132 128 * Set the field_settings property
133 129 *
134 130 * @since 2.03.05
135 - *
136 - * @return void
137 131 */
138 132 protected function set_field_settings() {
139 133 // Leave as null for free version
140 134 }
@@ -142,10 +136,8 @@
142 136 /**
143 137 * Set the options property
144 138 *
145 139 * @since 2.03.05
146 - *
147 - * @return void
148 140 */
149 141 protected function set_options() {
150 142 $field_obj = FrmFieldFactory::get_field_object( $this->db_row );
151 143 $this->options = $field_obj->get_options( array() );
@@ -156,10 +148,8 @@
156 148 *
157 149 * @since 2.03.05
158 150 *
159 151 * @param array $args
160 - *
161 - * @return void
162 152 */
163 153 protected function set_html_name( $args ) {
164 154 if ( isset( $args['html_name'] ) ) {
165 155 $this->html_name = (string) $args['html_name'];
@@ -171,10 +161,8 @@
171 161 *
172 162 * @since 2.03.05
173 163 *
174 164 * @param array $args
175 - *
176 - * @return void
177 165 */
178 166 protected function set_value( $args ) {
179 167 if ( isset( $args['value'] ) ) {
180 168 $this->value = (string) $args['value'];
@@ -186,10 +174,8 @@
186 174 *
187 175 * @since 2.03.05
188 176 *
189 177 * @param array $args
190 - *
191 - * @return void
192 178 */
193 179 protected function set_source( $args ) {
194 180 if ( isset( $args['source'] ) ) {
195 181 $this->source = (string) $args['source'];
@@ -221,10 +207,8 @@
221 207 /**
222 208 * Display the field value selector (dropdown or text field)
223 209 *
224 210 * @since 2.03.05
225 - *
226 - * @return void
227 211 */
228 212 public function display() {
229 213 if ( $this->has_options() ) {
230 214 $this->display_dropdown();
@@ -236,10 +220,8 @@
236 220 /**
237 221 * Print the field value text box
238 222 *
239 223 * @since 2.03.05
240 - *
241 - * @return void
242 224 */
243 225 public function display_text_box() {
244 226 echo '<input type="text" name="' . esc_attr( $this->html_name ) . '" value="' . esc_attr( trim( $this->value ) ) . '" />';
245 227 }
@@ -247,10 +229,8 @@
247 229 /**
248 230 * Display the field value selector
249 231 *
250 232 * @since 2.03.05
251 - *
252 - * @return void
253 233 */
254 234 protected function display_dropdown() {
255 235 echo '<select name="' . esc_attr( $this->html_name ) . '">';
256 236 echo '<option value="">' . esc_attr( $this->blank_option_label ) . '</option>';