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