| 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 FrmFormDeprecated { |
| 12 |
|
| 13 |
/** |
| 14 |
* @deprecated 2.03.05 |
| 15 |
*/ |
| 16 |
public static function create( $values ) { |
| 17 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::create' ); |
| 18 |
|
| 19 |
return FrmForm::create( $values ); |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* @deprecated 2.03.05 |
| 24 |
*/ |
| 25 |
public static function duplicate( $id, $template = false, $copy_keys = false, $blog_id = false ) { |
| 26 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::duplicate' ); |
| 27 |
|
| 28 |
return FrmForm::duplicate( $id, $template, $copy_keys, $blog_id ); |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* @deprecated 2.03.05 |
| 33 |
*/ |
| 34 |
public static function after_duplicate( $form_id, $values ) { |
| 35 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::after_duplicate' ); |
| 36 |
|
| 37 |
return FrmForm::after_duplicate( $form_id, $values ); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* @deprecated 2.03.05 |
| 42 |
*/ |
| 43 |
public static function update( $id, $values, $create_link = false ) { |
| 44 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::update' ); |
| 45 |
|
| 46 |
return FrmForm::update( $id, $values, $create_link ); |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* @deprecated 2.03.05 |
| 51 |
*/ |
| 52 |
public static function set_update_options( $new_values, $values ) { |
| 53 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::set_update_options' ); |
| 54 |
|
| 55 |
return FrmForm::set_update_options( $new_values, $values ); |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
/** |
| 60 |
* @deprecated 2.03.05 |
| 61 |
*/ |
| 62 |
public static function update_fields( $id, $values ) { |
| 63 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::update_fields' ); |
| 64 |
|
| 65 |
return FrmForm::update_fields( $id, $values ); |
| 66 |
} |
| 67 |
|
| 68 |
/** |
| 69 |
* @deprecated 2.03.05 |
| 70 |
*/ |
| 71 |
public static function set_status( $id, $status ) { |
| 72 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::set_status' ); |
| 73 |
|
| 74 |
return FrmForm::set_status( $id, $status ); |
| 75 |
} |
| 76 |
|
| 77 |
/** |
| 78 |
* @deprecated 2.03.05 |
| 79 |
*/ |
| 80 |
public static function trash( $id ) { |
| 81 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::trash' ); |
| 82 |
|
| 83 |
return FrmForm::trash( $id ); |
| 84 |
} |
| 85 |
|
| 86 |
/** |
| 87 |
* @deprecated 2.03.05 |
| 88 |
*/ |
| 89 |
public static function destroy( $id ) { |
| 90 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::destroy' ); |
| 91 |
|
| 92 |
return FrmForm::destroy( $id ); |
| 93 |
} |
| 94 |
|
| 95 |
/** |
| 96 |
* @deprecated 2.03.05 |
| 97 |
*/ |
| 98 |
public static function scheduled_delete( $delete_timestamp = '' ) { |
| 99 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::scheduled_delete' ); |
| 100 |
|
| 101 |
return FrmForm::scheduled_delete( $delete_timestamp ); |
| 102 |
} |
| 103 |
|
| 104 |
/** |
| 105 |
* @deprecated 2.03.05 |
| 106 |
*/ |
| 107 |
public static function getName( $id ) { |
| 108 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::getName' ); |
| 109 |
|
| 110 |
return FrmForm::getName( $id ); |
| 111 |
} |
| 112 |
|
| 113 |
/** |
| 114 |
* @deprecated 2.03.05 |
| 115 |
*/ |
| 116 |
public static function getIdByKey( $key ) { |
| 117 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_id_by_key' ); |
| 118 |
|
| 119 |
return FrmForm::get_id_by_key( $key ); |
| 120 |
} |
| 121 |
|
| 122 |
/** |
| 123 |
* @deprecated 2.03.05 |
| 124 |
*/ |
| 125 |
public static function getKeyById( $id ) { |
| 126 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_key_by_id' ); |
| 127 |
|
| 128 |
return FrmForm::get_key_by_id( $id ); |
| 129 |
} |
| 130 |
|
| 131 |
/** |
| 132 |
* @deprecated 2.03.05 |
| 133 |
*/ |
| 134 |
public static function maybe_get_form( &$form ) { |
| 135 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::maybe_get_form' ); |
| 136 |
FrmForm::maybe_get_form( $form ); |
| 137 |
} |
| 138 |
|
| 139 |
/** |
| 140 |
* @deprecated 2.03.05 |
| 141 |
*/ |
| 142 |
public static function getOne( $id, $blog_id = false ) { |
| 143 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::getOne' ); |
| 144 |
|
| 145 |
return FrmForm::getOne( $id, $blog_id ); |
| 146 |
} |
| 147 |
|
| 148 |
/** |
| 149 |
* @deprecated 2.03.05 |
| 150 |
*/ |
| 151 |
public static function getAll( $where = array(), $order_by = '', $limit = '' ) { |
| 152 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::getAll' ); |
| 153 |
|
| 154 |
return FrmForm::getAll( $where, $order_by, $limit ); |
| 155 |
} |
| 156 |
|
| 157 |
/** |
| 158 |
* @deprecated 2.03.05 |
| 159 |
*/ |
| 160 |
public static function get_published_forms( $query = array(), $limit = 999, $inc_children = 'exclude' ) { |
| 161 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_published_forms' ); |
| 162 |
|
| 163 |
return FrmForm::get_published_forms( $query, $limit, $inc_children ); |
| 164 |
} |
| 165 |
|
| 166 |
/** |
| 167 |
* @deprecated 2.03.05 |
| 168 |
*/ |
| 169 |
public static function get_count() { |
| 170 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_count' ); |
| 171 |
|
| 172 |
return FrmForm::get_count(); |
| 173 |
} |
| 174 |
|
| 175 |
/** |
| 176 |
* @deprecated 2.03.05 |
| 177 |
*/ |
| 178 |
public static function clear_form_cache() { |
| 179 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::clear_form_cache' ); |
| 180 |
FrmForm::clear_form_cache(); |
| 181 |
} |
| 182 |
|
| 183 |
/** |
| 184 |
* @deprecated 2.03.05 |
| 185 |
*/ |
| 186 |
public static function validate( $values ) { |
| 187 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::validate' ); |
| 188 |
|
| 189 |
return FrmForm::validate( $values ); |
| 190 |
} |
| 191 |
|
| 192 |
/** |
| 193 |
* @deprecated 2.03.05 |
| 194 |
*/ |
| 195 |
public static function get_params( $form = null ) { |
| 196 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_params' ); |
| 197 |
|
| 198 |
return FrmForm::get_params( $form ); |
| 199 |
} |
| 200 |
|
| 201 |
/** |
| 202 |
* @deprecated 2.03.05 |
| 203 |
*/ |
| 204 |
public static function list_page_params() { |
| 205 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::list_page_params' ); |
| 206 |
|
| 207 |
return FrmForm::list_page_params(); |
| 208 |
} |
| 209 |
|
| 210 |
/** |
| 211 |
* @deprecated 2.03.05 |
| 212 |
*/ |
| 213 |
public static function get_admin_params( $form = null ) { |
| 214 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_admin_params' ); |
| 215 |
|
| 216 |
return FrmForm::get_admin_params( $form ); |
| 217 |
} |
| 218 |
|
| 219 |
/** |
| 220 |
* @deprecated 2.03.05 |
| 221 |
*/ |
| 222 |
public static function get_current_form_id( $default_form = 'none' ) { |
| 223 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_current_form_id' ); |
| 224 |
|
| 225 |
return FrmForm::get_current_form_id( $default_form ); |
| 226 |
} |
| 227 |
|
| 228 |
/** |
| 229 |
* @deprecated 2.03.05 |
| 230 |
*/ |
| 231 |
public static function maybe_get_current_form( $form_id = 0 ) { |
| 232 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::maybe_get_current_form' ); |
| 233 |
|
| 234 |
return FrmForm::maybe_get_current_form( $form_id ); |
| 235 |
} |
| 236 |
|
| 237 |
/** |
| 238 |
* @deprecated 2.03.05 |
| 239 |
*/ |
| 240 |
public static function get_current_form( $form_id = 0 ) { |
| 241 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_current_form' ); |
| 242 |
|
| 243 |
return FrmForm::get_current_form( $form_id ); |
| 244 |
} |
| 245 |
|
| 246 |
/** |
| 247 |
* @deprecated 2.03.05 |
| 248 |
*/ |
| 249 |
public static function set_current_form( $form_id ) { |
| 250 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::set_current_form' ); |
| 251 |
|
| 252 |
return FrmForm::set_current_form( $form_id ); |
| 253 |
} |
| 254 |
|
| 255 |
/** |
| 256 |
* @deprecated 2.03.05 |
| 257 |
*/ |
| 258 |
public static function is_form_loaded( $form, $this_load, $global_load ) { |
| 259 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::is_form_loaded' ); |
| 260 |
|
| 261 |
return FrmForm::is_form_loaded( $form, $this_load, $global_load ); |
| 262 |
} |
| 263 |
|
| 264 |
/** |
| 265 |
* @deprecated 2.03.05 |
| 266 |
*/ |
| 267 |
public static function show_submit( $form ) { |
| 268 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::show_submit' ); |
| 269 |
|
| 270 |
return FrmForm::show_submit( $form ); |
| 271 |
} |
| 272 |
|
| 273 |
/** |
| 274 |
* @deprecated 2.03.05 |
| 275 |
*/ |
| 276 |
public static function get_option( $atts ) { |
| 277 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmForm::get_option' ); |
| 278 |
|
| 279 |
return FrmForm::get_option( $atts ); |
| 280 |
} |
| 281 |
} |
| 282 |
|