1
|
|
|
<?php if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
2
|
|
|
exit( 'No direct script access allowed' ); |
3
|
|
|
} |
4
|
|
|
|
5
|
|
|
|
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* EES_Espresso_Thank_You |
9
|
|
|
* |
10
|
|
|
* @deprecated 4.9.27 |
11
|
|
|
* @package Event Espresso |
12
|
|
|
* @subpackage /shortcodes/ |
13
|
|
|
* @author Brent Christensen |
14
|
|
|
* ------------------------------------------------------------------------ |
15
|
|
|
*/ |
16
|
|
|
class EES_Espresso_Thank_You extends EES_Shortcode { |
|
|
|
|
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* time in seconds to wait for the IPN to arrive before telling the registrant to bugger off ( 1200s = 20 minutes ) |
20
|
|
|
*/ |
21
|
|
|
const IPN_wait_time = 1200; |
22
|
|
|
|
23
|
|
|
|
24
|
|
|
|
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @deprecated 4.9.27 |
28
|
|
|
* @return void |
29
|
|
|
*/ |
30
|
|
|
public static function set_hooks() { |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
|
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @deprecated 4.9.27 |
37
|
|
|
* @return void |
38
|
|
|
*/ |
39
|
|
|
public static function set_hooks_admin() { |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
|
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @deprecated 4.9.27 |
46
|
|
|
* @return void |
47
|
|
|
*/ |
48
|
|
|
public static function set_definitions() { |
49
|
|
|
\EE_Error::doing_it_wrong( |
50
|
|
|
__METHOD__, |
51
|
|
|
__( |
52
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
53
|
|
|
'event_espresso' |
54
|
|
|
), |
55
|
|
|
'4.9.27' |
56
|
|
|
); |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
|
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @deprecated 4.9.27 |
63
|
|
|
* @return EE_Transaction |
64
|
|
|
*/ |
65
|
|
|
public function get_txn() { |
66
|
|
|
\EE_Error::doing_it_wrong( |
67
|
|
|
__METHOD__, |
68
|
|
|
__( |
69
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
70
|
|
|
'event_espresso' |
71
|
|
|
), |
72
|
|
|
'4.9.27' |
73
|
|
|
); |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
|
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @deprecated 4.9.27 |
80
|
|
|
* @param int $since |
81
|
|
|
* @return mixed array of EE_Payment || FALSE |
82
|
|
|
*/ |
83
|
|
|
public function get_txn_payments( $since = 0 ) { |
84
|
|
|
\EE_Error::doing_it_wrong( |
85
|
|
|
__METHOD__, |
86
|
|
|
__( |
87
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
88
|
|
|
'event_espresso' |
89
|
|
|
), |
90
|
|
|
'4.9.27' |
91
|
|
|
); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
|
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @deprecated 4.9.27 |
98
|
|
|
* @param string $reg_url_link |
99
|
|
|
* @return void |
100
|
|
|
*/ |
101
|
|
|
public function set_reg_url_link( $reg_url_link = null ) { |
102
|
|
|
\EE_Error::doing_it_wrong( |
103
|
|
|
__METHOD__, |
104
|
|
|
__( |
105
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
106
|
|
|
'event_espresso' |
107
|
|
|
), |
108
|
|
|
'4.9.27' |
109
|
|
|
); |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
|
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @deprecated 4.9.27 |
116
|
|
|
* @param WP $WP |
117
|
|
|
* @return void |
118
|
|
|
*/ |
119
|
|
|
public function run( WP $WP ) { |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
|
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @deprecated 4.9.27 |
126
|
|
|
* @return void |
127
|
|
|
*/ |
128
|
|
|
protected function _translate_strings() { |
129
|
|
|
\EE_Error::doing_it_wrong( |
130
|
|
|
__METHOD__, |
131
|
|
|
__( |
132
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
133
|
|
|
'event_espresso' |
134
|
|
|
), |
135
|
|
|
'4.9.27' |
136
|
|
|
); |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
|
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @deprecated 4.9.27 |
143
|
|
|
* @return void |
144
|
|
|
*/ |
145
|
|
|
public function load_js() { |
146
|
|
|
\EE_Error::doing_it_wrong( |
147
|
|
|
__METHOD__, |
148
|
|
|
__( |
149
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
150
|
|
|
'event_espresso' |
151
|
|
|
), |
152
|
|
|
'4.9.27' |
153
|
|
|
); |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
|
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @deprecated 4.9.27 |
160
|
|
|
* @return void |
161
|
|
|
* @throws \EE_Error |
162
|
|
|
*/ |
163
|
|
|
public function init() { |
164
|
|
|
\EE_Error::doing_it_wrong( |
165
|
|
|
__METHOD__, |
166
|
|
|
__( |
167
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
168
|
|
|
'event_espresso' |
169
|
|
|
), |
170
|
|
|
'4.9.27' |
171
|
|
|
); |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
|
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @deprecated 4.9.27 |
178
|
|
|
* @param array $attributes |
179
|
|
|
* @return string |
180
|
|
|
* @throws \EE_Error |
181
|
|
|
*/ |
182
|
|
|
public function process_shortcode( $attributes = array() ) { |
183
|
|
|
\EE_Error::doing_it_wrong( |
184
|
|
|
__METHOD__, |
185
|
|
|
__( |
186
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
187
|
|
|
'event_espresso' |
188
|
|
|
), |
189
|
|
|
'4.9.27' |
190
|
|
|
); |
191
|
|
|
return ''; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
|
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* @deprecated 4.9.27 |
198
|
|
|
* @param array $response |
199
|
|
|
* @param array $data |
200
|
|
|
* @return array |
201
|
|
|
* @throws \EE_Error |
202
|
|
|
*/ |
203
|
|
|
public static function thank_you_page_IPN_monitor( $response = array(), $data = array() ) { |
204
|
|
|
\EE_Error::doing_it_wrong( |
205
|
|
|
__METHOD__, |
206
|
|
|
__( |
207
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
208
|
|
|
'event_espresso' |
209
|
|
|
), |
210
|
|
|
'4.9.27' |
211
|
|
|
); |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
|
215
|
|
|
|
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @deprecated 4.9.27 |
219
|
|
|
* @return string |
220
|
|
|
* @throws \EE_Error |
221
|
|
|
*/ |
222
|
|
|
public function get_registration_details() { |
223
|
|
|
\EE_Error::doing_it_wrong( |
224
|
|
|
__METHOD__, |
225
|
|
|
__( |
226
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
227
|
|
|
'event_espresso' |
228
|
|
|
), |
229
|
|
|
'4.9.27' |
230
|
|
|
); |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
|
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* resend_reg_confirmation_email |
237
|
|
|
* |
238
|
|
|
* @deprecated 4.9.27 |
239
|
|
|
*/ |
240
|
|
|
public static function resend_reg_confirmation_email() { |
241
|
|
|
\EE_Error::doing_it_wrong( |
242
|
|
|
__METHOD__, |
243
|
|
|
__( |
244
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
245
|
|
|
'event_espresso' |
246
|
|
|
), |
247
|
|
|
'4.9.27' |
248
|
|
|
); |
249
|
|
|
} |
250
|
|
|
|
251
|
|
|
|
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* get_ajax_content |
255
|
|
|
* |
256
|
|
|
* @deprecated 4.9.27 |
257
|
|
|
* @return void |
258
|
|
|
*/ |
259
|
|
|
public function get_ajax_content() { |
260
|
|
|
\EE_Error::doing_it_wrong( |
261
|
|
|
__METHOD__, |
262
|
|
|
__( |
263
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
264
|
|
|
'event_espresso' |
265
|
|
|
), |
266
|
|
|
'4.9.27' |
267
|
|
|
); |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
|
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* display_details_for_events |
274
|
|
|
* |
275
|
|
|
* @deprecated 4.9.27 |
276
|
|
|
* @param EE_Event[] $events |
277
|
|
|
* @return void |
278
|
|
|
*/ |
279
|
|
|
public function display_details_for_events( $events = array() ) { |
280
|
|
|
\EE_Error::doing_it_wrong( |
281
|
|
|
__METHOD__, |
282
|
|
|
__( |
283
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
284
|
|
|
'event_espresso' |
285
|
|
|
), |
286
|
|
|
'4.9.27' |
287
|
|
|
); |
288
|
|
|
} |
289
|
|
|
|
290
|
|
|
|
291
|
|
|
|
292
|
|
|
/** |
293
|
|
|
* display_details_for_events_requiring_pre_approval |
294
|
|
|
* |
295
|
|
|
* @deprecated 4.9.27 |
296
|
|
|
* @param EE_Event[] $events |
297
|
|
|
* @return void |
298
|
|
|
*/ |
299
|
|
|
public function display_details_for_events_requiring_pre_approval( $events = array() ) { |
300
|
|
|
\EE_Error::doing_it_wrong( |
301
|
|
|
__METHOD__, |
302
|
|
|
__( |
303
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
304
|
|
|
'event_espresso' |
305
|
|
|
), |
306
|
|
|
'4.9.27' |
307
|
|
|
); |
308
|
|
|
} |
309
|
|
|
|
310
|
|
|
|
311
|
|
|
|
312
|
|
|
/** |
313
|
|
|
* get_transaction_details |
314
|
|
|
* |
315
|
|
|
* @deprecated 4.9.27 |
316
|
|
|
* @return string |
317
|
|
|
* @throws \EE_Error |
318
|
|
|
*/ |
319
|
|
|
public function get_transaction_details() { |
320
|
|
|
\EE_Error::doing_it_wrong( |
321
|
|
|
__METHOD__, |
322
|
|
|
__( |
323
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
324
|
|
|
'event_espresso' |
325
|
|
|
), |
326
|
|
|
'4.9.27' |
327
|
|
|
); |
328
|
|
|
} |
329
|
|
|
|
330
|
|
|
|
331
|
|
|
|
332
|
|
|
/** |
333
|
|
|
* get_payment_row_html |
334
|
|
|
* |
335
|
|
|
* @deprecated 4.9.27 |
336
|
|
|
* @param EE_Payment $payment |
337
|
|
|
* @return string |
338
|
|
|
* @throws \EE_Error |
339
|
|
|
*/ |
340
|
|
|
public function get_payment_row_html( $payment = null ) { |
341
|
|
|
\EE_Error::doing_it_wrong( |
342
|
|
|
__METHOD__, |
343
|
|
|
__( |
344
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
345
|
|
|
'event_espresso' |
346
|
|
|
), |
347
|
|
|
'4.9.27' |
348
|
|
|
); |
349
|
|
|
} |
350
|
|
|
|
351
|
|
|
|
352
|
|
|
|
353
|
|
|
/** |
354
|
|
|
* get_payment_details |
355
|
|
|
* |
356
|
|
|
* @deprecated 4.9.27 |
357
|
|
|
* @param array $payments |
358
|
|
|
* @return string |
359
|
|
|
* @throws \EE_Error |
360
|
|
|
*/ |
361
|
|
|
public function get_payment_details( $payments = array() ) { |
362
|
|
|
\EE_Error::doing_it_wrong( |
363
|
|
|
__METHOD__, |
364
|
|
|
__( |
365
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
366
|
|
|
'event_espresso' |
367
|
|
|
), |
368
|
|
|
'4.9.27' |
369
|
|
|
); |
370
|
|
|
} |
371
|
|
|
|
372
|
|
|
|
373
|
|
|
|
374
|
|
|
/** |
375
|
|
|
* get_payment_details |
376
|
|
|
* |
377
|
|
|
* @deprecated 4.9.27 |
378
|
|
|
* @param array $payments |
379
|
|
|
* @return string |
380
|
|
|
* @throws \EE_Error |
381
|
|
|
*/ |
382
|
|
|
public function get_new_payments( $payments = array() ) { |
383
|
|
|
\EE_Error::doing_it_wrong( |
384
|
|
|
__METHOD__, |
385
|
|
|
__( |
386
|
|
|
'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoThankYou instead.', |
387
|
|
|
'event_espresso' |
388
|
|
|
), |
389
|
|
|
'4.9.27' |
390
|
|
|
); |
391
|
|
|
} |
392
|
|
|
|
393
|
|
|
|
394
|
|
|
|
395
|
|
|
} |
396
|
|
|
// End of file EES_Espresso_Thank_You.shortcode.php |
397
|
|
|
// Location: /shortcodes/EES_Espresso_Thank_You.shortcode.php |
398
|
|
|
|
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.