1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* @since 2.03.05 |
5
|
|
|
*/ |
6
|
|
|
class FrmFieldDeprecated { |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @deprecated 2.03.05 |
10
|
|
|
*/ |
11
|
|
|
public static function field_selection() { |
12
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::field_selection' ); |
13
|
|
|
|
14
|
|
|
return FrmField::field_selection(); |
15
|
|
|
} |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @deprecated 2.03.05 |
19
|
|
|
*/ |
20
|
|
|
public static function pro_field_selection() { |
21
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::pro_field_selection' ); |
22
|
|
|
|
23
|
|
|
return FrmField::pro_field_selection(); |
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @deprecated 2.03.05 |
28
|
|
|
*/ |
29
|
|
|
public static function create( $values, $return = true ) { |
30
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::create' ); |
31
|
|
|
|
32
|
|
|
return FrmField::create( $values, $return ); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @deprecated 2.03.05 |
37
|
|
|
*/ |
38
|
|
|
public static function duplicate( $old_form_id, $form_id, $copy_keys = false, $blog_id = false ) { |
39
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::duplicate' ); |
40
|
|
|
FrmField::duplicate( $old_form_id, $form_id, $copy_keys, $blog_id ); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @deprecated 2.03.05 |
45
|
|
|
*/ |
46
|
|
|
public static function update( $id, $values ) { |
47
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::update' ); |
48
|
|
|
|
49
|
|
|
return FrmField::update( $id, $values ); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @deprecated 2.03.05 |
54
|
|
|
*/ |
55
|
|
|
public static function destroy( $id ) { |
56
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::destroy' ); |
57
|
|
|
|
58
|
|
|
return FrmField::destroy( $id ); |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @deprecated 2.03.05 |
63
|
|
|
*/ |
64
|
|
|
public static function delete_form_transient( $form_id ) { |
65
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::delete_form_transient' ); |
66
|
|
|
|
67
|
|
|
return FrmField::delete_form_transient( $form_id ); |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @deprecated 2.03.05 |
72
|
|
|
*/ |
73
|
|
|
public static function maybe_get_field( &$field ) { |
74
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::maybe_get_field' ); |
75
|
|
|
FrmField::maybe_get_field( $field ); |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @deprecated 2.03.05 |
80
|
|
|
*/ |
81
|
|
|
public static function getOne( $id ) { |
|
|
|
|
82
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::getOne' ); |
83
|
|
|
|
84
|
|
|
return FrmField::getOne( $id ); |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @deprecated 2.03.05 |
89
|
|
|
*/ |
90
|
|
|
public static function get_type( $id, $col = 'type' ) { |
91
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_type' ); |
92
|
|
|
|
93
|
|
|
return FrmField::get_type( $id, $col ); |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @deprecated 2.03.05 |
98
|
|
|
*/ |
99
|
|
|
public static function get_all_types_in_form( $form_id, $type, $limit = '', $inc_sub = 'exclude' ) { |
100
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_all_types_in_form' ); |
101
|
|
|
|
102
|
|
|
return FrmField::get_all_types_in_form( $form_id, $type, $limit, $inc_sub ); |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @deprecated 2.03.05 |
107
|
|
|
*/ |
108
|
|
|
public static function get_all_for_form( $form_id, $limit = '', $inc_embed = 'exclude', $inc_repeat = 'include' ) { |
109
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_all_for_form' ); |
110
|
|
|
|
111
|
|
|
return FrmField::get_all_for_form( $form_id, $limit, $inc_embed, $inc_repeat ); |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @deprecated 2.03.05 |
116
|
|
|
*/ |
117
|
|
|
public static function include_sub_fields( &$results, $inc_embed, $type = 'all' ) { |
118
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::include_sub_fields' ); |
119
|
|
|
FrmField::include_sub_fields( $results, $inc_embed, $type ); |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @deprecated 2.03.05 |
124
|
|
|
*/ |
125
|
|
|
public static function getAll( $where = array(), $order_by = '', $limit = '', $blog_id = false ) { |
|
|
|
|
126
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::getAll' ); |
127
|
|
|
|
128
|
|
|
return FrmField::getAll( $where, $order_by, $limit, $blog_id ); |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @deprecated 2.03.05 |
133
|
|
|
*/ |
134
|
|
|
public static function is_no_save_field( $type ) { |
135
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_no_save_field' ); |
136
|
|
|
|
137
|
|
|
return FrmField::is_no_save_field( $type ); |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @deprecated 2.03.05 |
142
|
|
|
*/ |
143
|
|
|
public static function no_save_fields() { |
144
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::no_save_fields' ); |
145
|
|
|
|
146
|
|
|
return FrmField::no_save_fields(); |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @deprecated 2.03.05 |
151
|
|
|
*/ |
152
|
|
|
public static function is_field_with_multiple_values( $field ) { |
153
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_field_with_multiple_values' ); |
154
|
|
|
|
155
|
|
|
return FrmField::is_field_with_multiple_values( $field ); |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @deprecated 2.03.05 |
160
|
|
|
*/ |
161
|
|
|
public static function is_multiple_select( $field ) { |
162
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_multiple_select' ); |
163
|
|
|
|
164
|
|
|
return FrmField::is_multiple_select( $field ); |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @deprecated 2.03.05 |
169
|
|
|
*/ |
170
|
|
|
public static function is_read_only( $field ) { |
171
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_read_only' ); |
172
|
|
|
|
173
|
|
|
return FrmField::is_read_only( $field ); |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @deprecated 2.03.05 |
178
|
|
|
*/ |
179
|
|
|
public static function is_required( $field ) { |
180
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_required' ); |
181
|
|
|
|
182
|
|
|
return FrmField::is_required( $field ); |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @deprecated 2.03.05 |
187
|
|
|
*/ |
188
|
|
|
public static function is_option_true( $field, $option ) { |
189
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_true' ); |
190
|
|
|
|
191
|
|
|
return FrmField::is_option_true( $field, $option ); |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* @deprecated 2.03.05 |
196
|
|
|
*/ |
197
|
|
|
public static function is_option_empty( $field, $option ) { |
198
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_empty' ); |
199
|
|
|
|
200
|
|
|
return FrmField::is_option_empty( $field, $option ); |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @deprecated 2.03.05 |
205
|
|
|
*/ |
206
|
|
|
public static function is_option_true_in_array( $field, $option ) { |
207
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_true_in_array' ); |
208
|
|
|
|
209
|
|
|
return FrmField::is_option_true_in_array( $field, $option ); |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
/** |
213
|
|
|
* @deprecated 2.03.05 |
214
|
|
|
*/ |
215
|
|
|
public static function is_option_true_in_object( $field, $option ) { |
216
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_true_in_object' ); |
217
|
|
|
|
218
|
|
|
return FrmField::is_option_true_in_object( $field, $option ); |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @deprecated 2.03.05 |
223
|
|
|
*/ |
224
|
|
|
public static function is_option_empty_in_array( $field, $option ) { |
225
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_empty_in_array' ); |
226
|
|
|
|
227
|
|
|
return FrmField::is_option_empty_in_array( $field, $option ); |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @deprecated 2.03.05 |
232
|
|
|
*/ |
233
|
|
|
public static function is_option_empty_in_object( $field, $option ) { |
234
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_empty_in_object' ); |
235
|
|
|
|
236
|
|
|
return FrmField::is_option_empty_in_object( $field, $option ); |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @deprecated 2.03.05 |
241
|
|
|
*/ |
242
|
|
|
public static function is_option_value_in_object( $field, $option ) { |
243
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_option_value_in_object' ); |
244
|
|
|
|
245
|
|
|
return FrmField::is_option_value_in_object( $field, $option ); |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @deprecated 2.03.05 |
250
|
|
|
*/ |
251
|
|
|
public static function get_option( $field, $option ) { |
252
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_option' ); |
253
|
|
|
|
254
|
|
|
return FrmField::get_option( $field, $option ); |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @deprecated 2.03.05 |
259
|
|
|
*/ |
260
|
|
|
public static function get_option_in_array( $field, $option ) { |
261
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_option_in_array' ); |
262
|
|
|
|
263
|
|
|
return FrmField::get_option_in_array( $field, $option ); |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @deprecated 2.03.05 |
268
|
|
|
*/ |
269
|
|
|
public static function get_option_in_object( $field, $option ) { |
270
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_option_in_object' ); |
271
|
|
|
|
272
|
|
|
return FrmField::get_option_in_object( $field, $option ); |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @deprecated 2.03.05 |
277
|
|
|
*/ |
278
|
|
|
public static function is_repeating_field( $field ) { |
279
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::is_repeating_field' ); |
280
|
|
|
|
281
|
|
|
return FrmField::is_repeating_field( $field ); |
282
|
|
|
} |
283
|
|
|
|
284
|
|
|
/** |
285
|
|
|
* @deprecated 2.03.05 |
286
|
|
|
*/ |
287
|
|
|
public static function get_id_by_key( $key ) { |
288
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_id_by_key' ); |
289
|
|
|
|
290
|
|
|
return FrmField::get_id_by_key( $key ); |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @deprecated 2.03.05 |
295
|
|
|
*/ |
296
|
|
|
public static function get_key_by_id( $id ) { |
297
|
|
|
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmField::get_key_by_id' ); |
298
|
|
|
|
299
|
|
|
return FrmField::get_key_by_id( $id ); |
300
|
|
|
} |
301
|
|
|
|
302
|
|
|
} |