| 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 FrmEntryDeprecated { |
| 12 |
|
| 13 |
/** |
| 14 |
* @deprecated 2.03.05 |
| 15 |
*/ |
| 16 |
public static function create( $values ) { |
| 17 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::create' ); |
| 18 |
|
| 19 |
return FrmEntry::create( $values ); |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* @deprecated 2.03.05 |
| 24 |
*/ |
| 25 |
public static function is_duplicate( $new_values, $values ) { |
| 26 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::is_duplicate' ); |
| 27 |
|
| 28 |
return FrmEntry::is_duplicate( $new_values, $values ); |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* @deprecated 2.03.05 |
| 33 |
*/ |
| 34 |
public static function duplicate( $id ) { |
| 35 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::duplicate' ); |
| 36 |
|
| 37 |
return FrmEntry::duplicate( $id ); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* @deprecated 2.03.05 |
| 42 |
*/ |
| 43 |
public static function update( $id, $values ) { |
| 44 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::update' ); |
| 45 |
|
| 46 |
return FrmEntry::update( $id, $values ); |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* @deprecated 2.03.05 |
| 51 |
*/ |
| 52 |
public static function destroy( $id ) { |
| 53 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::destroy' ); |
| 54 |
|
| 55 |
return FrmEntry::destroy( $id ); |
| 56 |
} |
| 57 |
|
| 58 |
/** |
| 59 |
* @deprecated 2.03.05 |
| 60 |
*/ |
| 61 |
public static function update_form( $id, $value, $form_id ) { |
| 62 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::update_form' ); |
| 63 |
|
| 64 |
return FrmEntry::update_form( $id, $value, $form_id ); |
| 65 |
} |
| 66 |
|
| 67 |
/** |
| 68 |
* @deprecated 2.03.05 |
| 69 |
*/ |
| 70 |
public static function clear_cache() { |
| 71 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::clear_cache' ); |
| 72 |
|
| 73 |
FrmEntry::clear_cache(); |
| 74 |
} |
| 75 |
|
| 76 |
/** |
| 77 |
* @deprecated 2.03.05 |
| 78 |
*/ |
| 79 |
public static function get_new_entry_name( $values, $default = '' ) { |
| 80 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::get_new_entry_name' ); |
| 81 |
|
| 82 |
return FrmEntry::get_new_entry_name( $values, $default ); |
| 83 |
} |
| 84 |
|
| 85 |
/** |
| 86 |
* @deprecated 2.03.05 |
| 87 |
*/ |
| 88 |
public static function maybe_get_entry( &$entry ) { |
| 89 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::maybe_get_entry' ); |
| 90 |
|
| 91 |
FrmEntry::maybe_get_entry( $entry ); |
| 92 |
} |
| 93 |
|
| 94 |
/** |
| 95 |
* @deprecated 2.03.05 |
| 96 |
*/ |
| 97 |
public static function getOne( $id, $meta = false ) { |
| 98 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::getOne' ); |
| 99 |
|
| 100 |
return FrmEntry::getOne( $id, $meta ); |
| 101 |
} |
| 102 |
|
| 103 |
/** |
| 104 |
* @deprecated 2.03.05 |
| 105 |
*/ |
| 106 |
public static function get_meta( $entry ) { |
| 107 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::get_meta' ); |
| 108 |
|
| 109 |
return FrmEntry::get_meta( $entry ); |
| 110 |
} |
| 111 |
|
| 112 |
/** |
| 113 |
* @deprecated 2.03.05 |
| 114 |
*/ |
| 115 |
public static function exists( $id ) { |
| 116 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::exists' ); |
| 117 |
|
| 118 |
return FrmEntry::exists( $id ); |
| 119 |
} |
| 120 |
|
| 121 |
/** |
| 122 |
* @deprecated 2.03.05 |
| 123 |
*/ |
| 124 |
public static function getAll( $where, $order_by = '', $limit = '', $meta = false, $inc_form = true ) { |
| 125 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::getAll' ); |
| 126 |
|
| 127 |
return FrmEntry::getAll( $where, $order_by, $limit, $meta, $inc_form ); |
| 128 |
} |
| 129 |
|
| 130 |
/** |
| 131 |
* @deprecated 2.03.05 |
| 132 |
*/ |
| 133 |
public static function getRecordCount( $where = '' ) { |
| 134 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::getRecordCount' ); |
| 135 |
|
| 136 |
return FrmEntry::getRecordCount( $where ); |
| 137 |
} |
| 138 |
|
| 139 |
/** |
| 140 |
* @deprecated 2.03.05 |
| 141 |
*/ |
| 142 |
public static function getPageCount( $p_size, $where = '' ) { |
| 143 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::getPageCount' ); |
| 144 |
|
| 145 |
return FrmEntry::getPageCount( $p_size, $where ); |
| 146 |
} |
| 147 |
|
| 148 |
/** |
| 149 |
* @deprecated 2.03.05 |
| 150 |
*/ |
| 151 |
public static function sanitize_entry_post( &$values ) { |
| 152 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::sanitize_entry_post' ); |
| 153 |
|
| 154 |
FrmEntry::sanitize_entry_post( $values ); |
| 155 |
} |
| 156 |
|
| 157 |
/** |
| 158 |
* @deprecated 2.03.05 |
| 159 |
*/ |
| 160 |
public static function create_entry_from_xml( $values ) { |
| 161 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::create_entry_from_xml' ); |
| 162 |
|
| 163 |
return FrmEntry::create_entry_from_xml( $values ); |
| 164 |
} |
| 165 |
|
| 166 |
/** |
| 167 |
* @deprecated 2.03.05 |
| 168 |
*/ |
| 169 |
public static function update_entry_from_xml( $id, $values ) { |
| 170 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::update_entry_from_xml ' ); |
| 171 |
|
| 172 |
return FrmEntry::update_entry_from_xml( $id, $values ); |
| 173 |
} |
| 174 |
|
| 175 |
/** |
| 176 |
* @deprecated 2.03.05 |
| 177 |
*/ |
| 178 |
public static function get_id_by_key( $key ) { |
| 179 |
_deprecated_function( __FUNCTION__, '2.03.05', 'FrmEntry::get_id_by_key' ); |
| 180 |
|
| 181 |
return FrmEntry::get_id_by_key( $key ); |
| 182 |
} |
| 183 |
} |
| 184 |
|