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