1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* @package Web Hook |
5
|
|
|
* @author Iurii Makukh <[email protected]> |
6
|
|
|
* @copyright Copyright (c) 2017, Iurii Makukh <[email protected]> |
7
|
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License 3.0 |
8
|
|
|
*/ |
9
|
|
|
|
10
|
|
|
namespace gplcart\modules\webhook; |
11
|
|
|
|
12
|
|
|
use gplcart\core\Container, |
13
|
|
|
gplcart\core\Module as CoreModule; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Main class for Web Hook module |
17
|
|
|
*/ |
18
|
|
|
class Module |
19
|
|
|
{ |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* Module class instance |
23
|
|
|
* @var \gplcart\core\Module $module |
24
|
|
|
*/ |
25
|
|
|
protected $module; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @param CoreModule $module |
29
|
|
|
*/ |
30
|
|
|
public function __construct(CoreModule $module) |
31
|
|
|
{ |
32
|
|
|
$this->module = $module; |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* Send via HTTP POST request |
37
|
|
|
* @param string $hook |
38
|
|
|
* @param array $arguments |
39
|
|
|
* @return bool|array |
40
|
|
|
*/ |
41
|
|
|
protected function sendPayload($hook, array $arguments) |
42
|
|
|
{ |
43
|
|
|
$settings = $this->module->getSettings('webhook'); |
44
|
|
|
|
45
|
|
|
if (!in_array($hook, $settings['hooks']) || empty($settings['url']) || empty($settings['sender'])) { |
46
|
|
|
return false; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
try { |
50
|
|
|
$payload = $this->preparePayload($hook, $arguments, $settings); |
51
|
|
|
return $this->getSocketClient()->request($settings['url'], array('data' => $payload, 'method' => 'POST')); |
52
|
|
|
} catch (\Exception $ex) { |
53
|
|
|
trigger_error('Failed to send payload'); |
54
|
|
|
return false; |
55
|
|
|
} |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* Prepare payload data before sending via HTTP POST |
60
|
|
|
* @param string $hook |
61
|
|
|
* @param array $arguments |
62
|
|
|
* @param array $settings |
63
|
|
|
* @return array |
64
|
|
|
*/ |
65
|
|
|
protected function preparePayload($hook, array $arguments, array $settings) |
66
|
|
|
{ |
67
|
|
|
$payload = array( |
68
|
|
|
'encrypted' => false, |
69
|
|
|
'sender' => $settings['sender'], |
70
|
|
|
'data' => gplcart_json_encode(array('hook' => $hook, 'arguments' => $arguments)) |
71
|
|
|
); |
72
|
|
|
|
73
|
|
|
if ($settings['key'] !== '' && $settings['salt'] !== '') { |
74
|
|
|
$payload['encrypted'] = true; |
75
|
|
|
$key = hash('sha256', $settings['key']); |
76
|
|
|
$salt = substr(hash('sha256', $settings['salt']), 0, 16); |
77
|
|
|
$payload['data'] = openssl_encrypt($payload['data'], 'AES-256-CBC', $key, 0, $salt); |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
return $payload; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* Returns socket client class instance |
85
|
|
|
* @return \gplcart\core\helpers\SocketClient |
86
|
|
|
*/ |
87
|
|
|
protected function getSocketClient() |
88
|
|
|
{ |
89
|
|
|
return Container::get('gplcart\\core\\helpers\\SocketClient'); |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* Implements hook "route.list" |
94
|
|
|
* @param array $routes |
95
|
|
|
*/ |
96
|
|
|
public function hookRouteList(&$routes) |
97
|
|
|
{ |
98
|
|
|
$routes['admin/module/settings/webhook'] = array( |
99
|
|
|
'access' => 'module_edit', |
100
|
|
|
'handlers' => array( |
101
|
|
|
'controller' => array('gplcart\\modules\\webhook\\controllers\\Settings', 'editSettings') |
102
|
|
|
) |
103
|
|
|
); |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* Implements hook "module.install.before" |
108
|
|
|
*/ |
109
|
|
|
public function hookModuleInstallBefore() |
110
|
|
|
{ |
111
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* Implements hook "address.add.before" |
116
|
|
|
*/ |
117
|
|
|
public function hookAddressAddBefore() |
118
|
|
|
{ |
119
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* Implements hook "address.add.after" |
124
|
|
|
*/ |
125
|
|
|
public function hookAddressAddAfter() |
126
|
|
|
{ |
127
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* Implements hook "address.delete.before" |
132
|
|
|
*/ |
133
|
|
|
public function hookAddressDeleteBefore() |
134
|
|
|
{ |
135
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* Implements hook "address.delete.after" |
140
|
|
|
*/ |
141
|
|
|
public function hookAddressDeleteAfter() |
142
|
|
|
{ |
143
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* Implements hook "address.update.before" |
148
|
|
|
*/ |
149
|
|
|
public function hookAddressUpdateBefore() |
150
|
|
|
{ |
151
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* Implements hook "address.update.after" |
156
|
|
|
*/ |
157
|
|
|
public function hookAddressUpdateAfter() |
158
|
|
|
{ |
159
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* Implements hook "backup.add.before" |
164
|
|
|
*/ |
165
|
|
|
public function hookBackupAddBefore() |
166
|
|
|
{ |
167
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* Implements hook "backup.add.after" |
172
|
|
|
*/ |
173
|
|
|
public function hookBackupAddAfter() |
174
|
|
|
{ |
175
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* Implements hook "backup.delete.before" |
180
|
|
|
*/ |
181
|
|
|
public function hookBackupDeleteBefore() |
182
|
|
|
{ |
183
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* Implements hook "backup.delete.after" |
188
|
|
|
*/ |
189
|
|
|
public function hookBackupDeleteAfter() |
190
|
|
|
{ |
191
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* Implements hook "cart.add.product.before" |
196
|
|
|
*/ |
197
|
|
|
public function hookCartAddProductBefore() |
198
|
|
|
{ |
199
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
/** |
203
|
|
|
* Implements hook "cart.add.product.after" |
204
|
|
|
*/ |
205
|
|
|
public function hookCartAddProductAfter() |
206
|
|
|
{ |
207
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* Implements hook "cart.add.before" |
212
|
|
|
*/ |
213
|
|
|
public function hookCartAddBefore() |
214
|
|
|
{ |
215
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* Implements hook "cart.add.after" |
220
|
|
|
*/ |
221
|
|
|
public function hookCartAddAfter() |
222
|
|
|
{ |
223
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* Implements hook "cart.update.before" |
228
|
|
|
*/ |
229
|
|
|
public function hookCartUpdateBefore() |
230
|
|
|
{ |
231
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* Implements hook "cart.update.after" |
236
|
|
|
*/ |
237
|
|
|
public function hookCartUpdateAfter() |
238
|
|
|
{ |
239
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
/** |
243
|
|
|
* Implements hook "cart.move.wishlist.before" |
244
|
|
|
*/ |
245
|
|
|
public function hookCartMoveWishlistBefore() |
246
|
|
|
{ |
247
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* Implements hook "cart.move.wishlist.after" |
252
|
|
|
*/ |
253
|
|
|
public function hookCartMoveWishlistAfter() |
254
|
|
|
{ |
255
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* Implements hook "cart.login.before" |
260
|
|
|
*/ |
261
|
|
|
public function hookCartLoginBefore() |
262
|
|
|
{ |
263
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* Implements hook "cart.login.after" |
268
|
|
|
*/ |
269
|
|
|
public function hookCartLoginAfter() |
270
|
|
|
{ |
271
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
272
|
|
|
} |
273
|
|
|
|
274
|
|
|
/** |
275
|
|
|
* Implements hook "cart.delete.before" |
276
|
|
|
*/ |
277
|
|
|
public function hookCartDeleteBefore() |
278
|
|
|
{ |
279
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
280
|
|
|
} |
281
|
|
|
|
282
|
|
|
/** |
283
|
|
|
* Implements hook "cart.delete.after" |
284
|
|
|
*/ |
285
|
|
|
public function hookCartDeleteAfter() |
286
|
|
|
{ |
287
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
288
|
|
|
} |
289
|
|
|
|
290
|
|
|
/** |
291
|
|
|
* Implements hook "category.add.before" |
292
|
|
|
*/ |
293
|
|
|
public function hookCategoryAddBefore() |
294
|
|
|
{ |
295
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* Implements hook "category.add.after" |
300
|
|
|
*/ |
301
|
|
|
public function hookCategoryAddAfter() |
302
|
|
|
{ |
303
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* Implements hook "category.update.before" |
308
|
|
|
*/ |
309
|
|
|
public function hookCategoryUpdateBefore() |
310
|
|
|
{ |
311
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
312
|
|
|
} |
313
|
|
|
|
314
|
|
|
/** |
315
|
|
|
* Implements hook "category.update.after" |
316
|
|
|
*/ |
317
|
|
|
public function hookCategoryUpdateAfter() |
318
|
|
|
{ |
319
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
320
|
|
|
} |
321
|
|
|
|
322
|
|
|
/** |
323
|
|
|
* Implements hook "category.delete.before" |
324
|
|
|
*/ |
325
|
|
|
public function hookCategoryDeleteBefore() |
326
|
|
|
{ |
327
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
328
|
|
|
} |
329
|
|
|
|
330
|
|
|
/** |
331
|
|
|
* Implements hook "category.delete.after" |
332
|
|
|
*/ |
333
|
|
|
public function hookCategoryDeleteAfter() |
334
|
|
|
{ |
335
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* Implements hook "category.group.add.before" |
340
|
|
|
*/ |
341
|
|
|
public function hookCategoryGroupAddBefore() |
342
|
|
|
{ |
343
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
344
|
|
|
} |
345
|
|
|
|
346
|
|
|
/** |
347
|
|
|
* Implements hook "category.group.add.after" |
348
|
|
|
*/ |
349
|
|
|
public function hookCategoryGroupAddAfter() |
350
|
|
|
{ |
351
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
352
|
|
|
} |
353
|
|
|
|
354
|
|
|
/** |
355
|
|
|
* Implements hook "category.group.delete.before" |
356
|
|
|
*/ |
357
|
|
|
public function hookCategoryGroupDeleteBefore() |
358
|
|
|
{ |
359
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
360
|
|
|
} |
361
|
|
|
|
362
|
|
|
/** |
363
|
|
|
* Implements hook "category.group.delete.after" |
364
|
|
|
*/ |
365
|
|
|
public function hookCategoryGroupDeleteAfter() |
366
|
|
|
{ |
367
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
368
|
|
|
} |
369
|
|
|
|
370
|
|
|
/** |
371
|
|
|
* Implements hook "category.group.update.before" |
372
|
|
|
*/ |
373
|
|
|
public function hookCategoryGroupUpdateBefore() |
374
|
|
|
{ |
375
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
376
|
|
|
} |
377
|
|
|
|
378
|
|
|
/** |
379
|
|
|
* Implements hook "category.group.update.after" |
380
|
|
|
*/ |
381
|
|
|
public function hookCategoryGroupUpdateAfter() |
382
|
|
|
{ |
383
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
384
|
|
|
} |
385
|
|
|
|
386
|
|
|
/** |
387
|
|
|
* Implements hook "city.add.before" |
388
|
|
|
*/ |
389
|
|
|
public function hookCityAddBefore() |
390
|
|
|
{ |
391
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
392
|
|
|
} |
393
|
|
|
|
394
|
|
|
/** |
395
|
|
|
* Implements hook "city.add.after" |
396
|
|
|
*/ |
397
|
|
|
public function hookCityAddAfter() |
398
|
|
|
{ |
399
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
400
|
|
|
} |
401
|
|
|
|
402
|
|
|
/** |
403
|
|
|
* Implements hook "city.delete.before" |
404
|
|
|
*/ |
405
|
|
|
public function hookCityDeleteBefore() |
406
|
|
|
{ |
407
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
408
|
|
|
} |
409
|
|
|
|
410
|
|
|
/** |
411
|
|
|
* Implements hook "city.delete.after" |
412
|
|
|
*/ |
413
|
|
|
public function hookCityDeleteAfter() |
414
|
|
|
{ |
415
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
416
|
|
|
} |
417
|
|
|
|
418
|
|
|
/** |
419
|
|
|
* Implements hook "city.update.before" |
420
|
|
|
*/ |
421
|
|
|
public function hookCityUpdateBefore() |
422
|
|
|
{ |
423
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
424
|
|
|
} |
425
|
|
|
|
426
|
|
|
/** |
427
|
|
|
* Implements hook "city.update.after" |
428
|
|
|
*/ |
429
|
|
|
public function hookCityUpdateAfter() |
430
|
|
|
{ |
431
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
432
|
|
|
} |
433
|
|
|
|
434
|
|
|
/** |
435
|
|
|
* Implements hook "collection.add.before" |
436
|
|
|
*/ |
437
|
|
|
public function hookCollectionAddBefore() |
438
|
|
|
{ |
439
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
440
|
|
|
} |
441
|
|
|
|
442
|
|
|
/** |
443
|
|
|
* Implements hook "collection.add.after" |
444
|
|
|
*/ |
445
|
|
|
public function hookCollectionAddAfter() |
446
|
|
|
{ |
447
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
448
|
|
|
} |
449
|
|
|
|
450
|
|
|
/** |
451
|
|
|
* Implements hook "collection.delete.before" |
452
|
|
|
*/ |
453
|
|
|
public function hookCollectionDeleteBefore() |
454
|
|
|
{ |
455
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
456
|
|
|
} |
457
|
|
|
|
458
|
|
|
/** |
459
|
|
|
* Implements hook "collection.delete.after" |
460
|
|
|
*/ |
461
|
|
|
public function hookCollectionDeleteAfter() |
462
|
|
|
{ |
463
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
464
|
|
|
} |
465
|
|
|
|
466
|
|
|
/** |
467
|
|
|
* Implements hook "collection.update.before" |
468
|
|
|
*/ |
469
|
|
|
public function hookCollectionUpdateBefore() |
470
|
|
|
{ |
471
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
472
|
|
|
} |
473
|
|
|
|
474
|
|
|
/** |
475
|
|
|
* Implements hook "collection.update.after" |
476
|
|
|
*/ |
477
|
|
|
public function hookCollectionUpdateAfter() |
478
|
|
|
{ |
479
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
480
|
|
|
} |
481
|
|
|
|
482
|
|
|
/** |
483
|
|
|
* Implements hook "collection.item.add.before" |
484
|
|
|
*/ |
485
|
|
|
public function hookCollectionItemAddBefore() |
486
|
|
|
{ |
487
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
488
|
|
|
} |
489
|
|
|
|
490
|
|
|
/** |
491
|
|
|
* Implements hook "collection.item.add.after" |
492
|
|
|
*/ |
493
|
|
|
public function hookCollectionItemAddAfter() |
494
|
|
|
{ |
495
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
496
|
|
|
} |
497
|
|
|
|
498
|
|
|
/** |
499
|
|
|
* Implements hook "collection.item.delete.before" |
500
|
|
|
*/ |
501
|
|
|
public function hookCollectionItemDeleteBefore() |
502
|
|
|
{ |
503
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
504
|
|
|
} |
505
|
|
|
|
506
|
|
|
/** |
507
|
|
|
* Implements hook "collection.item.delete.after" |
508
|
|
|
*/ |
509
|
|
|
public function hookCollectionItemDeleteAfter() |
510
|
|
|
{ |
511
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
512
|
|
|
} |
513
|
|
|
|
514
|
|
|
/** |
515
|
|
|
* Implements hook "collection.item.update.before" |
516
|
|
|
*/ |
517
|
|
|
public function hookCollectionItemUpdateBefore() |
518
|
|
|
{ |
519
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
520
|
|
|
} |
521
|
|
|
|
522
|
|
|
/** |
523
|
|
|
* Implements hook "collection.item.update.after" |
524
|
|
|
*/ |
525
|
|
|
public function hookCollectionItemUpdateAfter() |
526
|
|
|
{ |
527
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
528
|
|
|
} |
529
|
|
|
|
530
|
|
|
/** |
531
|
|
|
* Implements hook "compare.add.before" |
532
|
|
|
*/ |
533
|
|
|
public function hookCompareAddBefore() |
534
|
|
|
{ |
535
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
536
|
|
|
} |
537
|
|
|
|
538
|
|
|
/** |
539
|
|
|
* Implements hook "compare.add.after" |
540
|
|
|
*/ |
541
|
|
|
public function hookCompareAddAfter() |
542
|
|
|
{ |
543
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
544
|
|
|
} |
545
|
|
|
|
546
|
|
|
/** |
547
|
|
|
* Implements hook "compare.add.product.before" |
548
|
|
|
*/ |
549
|
|
|
public function hookCompareAddProductBefore() |
550
|
|
|
{ |
551
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
552
|
|
|
} |
553
|
|
|
|
554
|
|
|
/** |
555
|
|
|
* Implements hook "compare.add.product.after" |
556
|
|
|
*/ |
557
|
|
|
public function hookCompareAddProductAfter() |
558
|
|
|
{ |
559
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
560
|
|
|
} |
561
|
|
|
|
562
|
|
|
/** |
563
|
|
|
* Implements hook "compare.delete.product.before" |
564
|
|
|
*/ |
565
|
|
|
public function hookCompareDeleteProductBefore() |
566
|
|
|
{ |
567
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
568
|
|
|
} |
569
|
|
|
|
570
|
|
|
/** |
571
|
|
|
* Implements hook "compare.delete.product.after" |
572
|
|
|
*/ |
573
|
|
|
public function hookCompareDeleteProductAfter() |
574
|
|
|
{ |
575
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
576
|
|
|
} |
577
|
|
|
|
578
|
|
|
/** |
579
|
|
|
* Implements hook "compare.delete.before" |
580
|
|
|
*/ |
581
|
|
|
public function hookCompareDeleteBefore() |
582
|
|
|
{ |
583
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
584
|
|
|
} |
585
|
|
|
|
586
|
|
|
/** |
587
|
|
|
* Implements hook "compare.delete.after" |
588
|
|
|
*/ |
589
|
|
|
public function hookCompareDeleteAfter() |
590
|
|
|
{ |
591
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
592
|
|
|
} |
593
|
|
|
|
594
|
|
|
/** |
595
|
|
|
* Implements hook "condition.met.before" |
596
|
|
|
*/ |
597
|
|
|
public function hookConditionMetBefore() |
598
|
|
|
{ |
599
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
600
|
|
|
} |
601
|
|
|
|
602
|
|
|
/** |
603
|
|
|
* Implements hook "condition.met.after" |
604
|
|
|
*/ |
605
|
|
|
public function hookConditionMetAfter() |
606
|
|
|
{ |
607
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
608
|
|
|
} |
609
|
|
|
|
610
|
|
|
/** |
611
|
|
|
* Implements hook "country.add.before" |
612
|
|
|
*/ |
613
|
|
|
public function hookCountryAddBefore() |
614
|
|
|
{ |
615
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
616
|
|
|
} |
617
|
|
|
|
618
|
|
|
/** |
619
|
|
|
* Implements hook "country.add.after" |
620
|
|
|
*/ |
621
|
|
|
public function hookCountryAddAfter() |
622
|
|
|
{ |
623
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
624
|
|
|
} |
625
|
|
|
|
626
|
|
|
/** |
627
|
|
|
* Implements hook "country.update.before" |
628
|
|
|
*/ |
629
|
|
|
public function hookCountryUpdateBefore() |
630
|
|
|
{ |
631
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
632
|
|
|
} |
633
|
|
|
|
634
|
|
|
/** |
635
|
|
|
* Implements hook "country.update.after" |
636
|
|
|
*/ |
637
|
|
|
public function hookCountryUpdateAfter() |
638
|
|
|
{ |
639
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
640
|
|
|
} |
641
|
|
|
|
642
|
|
|
/** |
643
|
|
|
* Implements hook "country.delete.before" |
644
|
|
|
*/ |
645
|
|
|
public function hookCountryDeleteBefore() |
646
|
|
|
{ |
647
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
648
|
|
|
} |
649
|
|
|
|
650
|
|
|
/** |
651
|
|
|
* Implements hook "country.delete.after" |
652
|
|
|
*/ |
653
|
|
|
public function hookCountryDeleteAfter() |
654
|
|
|
{ |
655
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
656
|
|
|
} |
657
|
|
|
|
658
|
|
|
/** |
659
|
|
|
* Implements hook "currency.update.before" |
660
|
|
|
*/ |
661
|
|
|
public function hookCurrencyUpdateBefore() |
662
|
|
|
{ |
663
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
664
|
|
|
} |
665
|
|
|
|
666
|
|
|
/** |
667
|
|
|
* Implements hook "currency.update.after" |
668
|
|
|
*/ |
669
|
|
|
public function hookCurrencyUpdateAfter() |
670
|
|
|
{ |
671
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
672
|
|
|
} |
673
|
|
|
|
674
|
|
|
/** |
675
|
|
|
* Implements hook "currency.delete.before" |
676
|
|
|
*/ |
677
|
|
|
public function hookCurrencyDeleteBefore() |
678
|
|
|
{ |
679
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
680
|
|
|
} |
681
|
|
|
|
682
|
|
|
/** |
683
|
|
|
* Implements hook "currency.delete.after" |
684
|
|
|
*/ |
685
|
|
|
public function hookCurrencyDeleteAfter() |
686
|
|
|
{ |
687
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
688
|
|
|
} |
689
|
|
|
|
690
|
|
|
/** |
691
|
|
|
* Implements hook "editor.save.before" |
692
|
|
|
*/ |
693
|
|
|
public function hookEditorSaveBefore() |
694
|
|
|
{ |
695
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
696
|
|
|
} |
697
|
|
|
|
698
|
|
|
/** |
699
|
|
|
* Implements hook "editor.save.after" |
700
|
|
|
*/ |
701
|
|
|
public function hookEditorSaveAfter() |
702
|
|
|
{ |
703
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
704
|
|
|
} |
705
|
|
|
|
706
|
|
|
/** |
707
|
|
|
* Implements hook "field.add.before" |
708
|
|
|
*/ |
709
|
|
|
public function hookFieldAddBefore() |
710
|
|
|
{ |
711
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
712
|
|
|
} |
713
|
|
|
|
714
|
|
|
/** |
715
|
|
|
* Implements hook "field.add.after" |
716
|
|
|
*/ |
717
|
|
|
public function hookFieldAddAfter() |
718
|
|
|
{ |
719
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
720
|
|
|
} |
721
|
|
|
|
722
|
|
|
/** |
723
|
|
|
* Implements hook "field.delete.before" |
724
|
|
|
*/ |
725
|
|
|
public function hookFieldDeleteBefore() |
726
|
|
|
{ |
727
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
728
|
|
|
} |
729
|
|
|
|
730
|
|
|
/** |
731
|
|
|
* Implements hook "field.delete.after" |
732
|
|
|
*/ |
733
|
|
|
public function hookFieldDeleteAfter() |
734
|
|
|
{ |
735
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
736
|
|
|
} |
737
|
|
|
|
738
|
|
|
/** |
739
|
|
|
* Implements hook "field.update.before" |
740
|
|
|
*/ |
741
|
|
|
public function hookFieldUpdateBefore() |
742
|
|
|
{ |
743
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
744
|
|
|
} |
745
|
|
|
|
746
|
|
|
/** |
747
|
|
|
* Implements hook "field.update.after" |
748
|
|
|
*/ |
749
|
|
|
public function hookFieldUpdateAfter() |
750
|
|
|
{ |
751
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
752
|
|
|
} |
753
|
|
|
|
754
|
|
|
/** |
755
|
|
|
* Implements hook "field.value.add.before" |
756
|
|
|
*/ |
757
|
|
|
public function hookFieldValueAddBefore() |
758
|
|
|
{ |
759
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
760
|
|
|
} |
761
|
|
|
|
762
|
|
|
/** |
763
|
|
|
* Implements hook "field.value.add.after" |
764
|
|
|
*/ |
765
|
|
|
public function hookFieldValueAddAfter() |
766
|
|
|
{ |
767
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
768
|
|
|
} |
769
|
|
|
|
770
|
|
|
/** |
771
|
|
|
* Implements hook "field.value.update.before" |
772
|
|
|
*/ |
773
|
|
|
public function hookFieldValueUpdateBefore() |
774
|
|
|
{ |
775
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
776
|
|
|
} |
777
|
|
|
|
778
|
|
|
/** |
779
|
|
|
* Implements hook "field.value.update.after" |
780
|
|
|
*/ |
781
|
|
|
public function hookFieldValueUpdateAfter() |
782
|
|
|
{ |
783
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
784
|
|
|
} |
785
|
|
|
|
786
|
|
|
/** |
787
|
|
|
* Implements hook "field.value.delete.before" |
788
|
|
|
*/ |
789
|
|
|
public function hookFieldValueDeleteBefore() |
790
|
|
|
{ |
791
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
792
|
|
|
} |
793
|
|
|
|
794
|
|
|
/** |
795
|
|
|
* Implements hook "field.value.delete.after" |
796
|
|
|
*/ |
797
|
|
|
public function hookFieldValueDeleteAfter() |
798
|
|
|
{ |
799
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
800
|
|
|
} |
801
|
|
|
|
802
|
|
|
/** |
803
|
|
|
* Implements hook "file.add.before" |
804
|
|
|
*/ |
805
|
|
|
public function hookFileAddBefore() |
806
|
|
|
{ |
807
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
808
|
|
|
} |
809
|
|
|
|
810
|
|
|
/** |
811
|
|
|
* Implements hook "file.add.after" |
812
|
|
|
*/ |
813
|
|
|
public function hookFileAddAfter() |
814
|
|
|
{ |
815
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
816
|
|
|
} |
817
|
|
|
|
818
|
|
|
/** |
819
|
|
|
* Implements hook "file.update.before" |
820
|
|
|
*/ |
821
|
|
|
public function hookFileUpdateBefore() |
822
|
|
|
{ |
823
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
824
|
|
|
} |
825
|
|
|
|
826
|
|
|
/** |
827
|
|
|
* Implements hook "file.update.after" |
828
|
|
|
*/ |
829
|
|
|
public function hookFileUpdateAfter() |
830
|
|
|
{ |
831
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
832
|
|
|
} |
833
|
|
|
|
834
|
|
|
/** |
835
|
|
|
* Implements hook "file.delete.before" |
836
|
|
|
*/ |
837
|
|
|
public function hookFileDeleteBefore() |
838
|
|
|
{ |
839
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
840
|
|
|
} |
841
|
|
|
|
842
|
|
|
/** |
843
|
|
|
* Implements hook "file.delete.after" |
844
|
|
|
*/ |
845
|
|
|
public function hookFileDeleteAfter() |
846
|
|
|
{ |
847
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
848
|
|
|
} |
849
|
|
|
|
850
|
|
|
/** |
851
|
|
|
* Implements hook "file.upload.before" |
852
|
|
|
*/ |
853
|
|
|
public function hookFileUploadBefore() |
854
|
|
|
{ |
855
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
856
|
|
|
} |
857
|
|
|
|
858
|
|
|
/** |
859
|
|
|
* Implements hook "file.upload.after" |
860
|
|
|
*/ |
861
|
|
|
public function hookFileUploadAfter() |
862
|
|
|
{ |
863
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
864
|
|
|
} |
865
|
|
|
|
866
|
|
|
/** |
867
|
|
|
* Implements hook "file.download.before" |
868
|
|
|
*/ |
869
|
|
|
public function hookFileDownloadBefore() |
870
|
|
|
{ |
871
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
872
|
|
|
} |
873
|
|
|
|
874
|
|
|
/** |
875
|
|
|
* Implements hook "file.download.after" |
876
|
|
|
*/ |
877
|
|
|
public function hookFileDownloadAfter() |
878
|
|
|
{ |
879
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
880
|
|
|
} |
881
|
|
|
|
882
|
|
|
/** |
883
|
|
|
* Implements hook "filter.update.before" |
884
|
|
|
*/ |
885
|
|
|
public function hookFilterUpdateBefore() |
886
|
|
|
{ |
887
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
888
|
|
|
} |
889
|
|
|
|
890
|
|
|
/** |
891
|
|
|
* Implements hook "filter.update.after" |
892
|
|
|
*/ |
893
|
|
|
public function hookFilterUpdateAfter() |
894
|
|
|
{ |
895
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
896
|
|
|
} |
897
|
|
|
|
898
|
|
|
/** |
899
|
|
|
* Implements hook "imagestyle.add.before" |
900
|
|
|
*/ |
901
|
|
|
public function hookImagestyleAddBefore() |
902
|
|
|
{ |
903
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
904
|
|
|
} |
905
|
|
|
|
906
|
|
|
/** |
907
|
|
|
* Implements hook "imagestyle.add.after" |
908
|
|
|
*/ |
909
|
|
|
public function hookImagestyleAddAfter() |
910
|
|
|
{ |
911
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
912
|
|
|
} |
913
|
|
|
|
914
|
|
|
/** |
915
|
|
|
* Implements hook "imagestyle.update.before" |
916
|
|
|
*/ |
917
|
|
|
public function hookImagestyleUpdateBefore() |
918
|
|
|
{ |
919
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
920
|
|
|
} |
921
|
|
|
|
922
|
|
|
/** |
923
|
|
|
* Implements hook "imagestyle.update.after" |
924
|
|
|
*/ |
925
|
|
|
public function hookImagestyleUpdateAfter() |
926
|
|
|
{ |
927
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
928
|
|
|
} |
929
|
|
|
|
930
|
|
|
/** |
931
|
|
|
* Implements hook "imagestyle.delete.before" |
932
|
|
|
*/ |
933
|
|
|
public function hookImagestyleDeleteBefore() |
934
|
|
|
{ |
935
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
936
|
|
|
} |
937
|
|
|
|
938
|
|
|
/** |
939
|
|
|
* Implements hook "imagestyle.delete.after" |
940
|
|
|
*/ |
941
|
|
|
public function hookImagestyleDeleteAfter() |
942
|
|
|
{ |
943
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
944
|
|
|
} |
945
|
|
|
|
946
|
|
|
/** |
947
|
|
|
* Implements hook "imagestyle.clear.cache.before" |
948
|
|
|
*/ |
949
|
|
|
public function hookImagestyleClearCacheBefore() |
950
|
|
|
{ |
951
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
952
|
|
|
} |
953
|
|
|
|
954
|
|
|
/** |
955
|
|
|
* Implements hook "imagestyle.clear.cache.after" |
956
|
|
|
*/ |
957
|
|
|
public function hookImagestyleClearCacheAfter() |
958
|
|
|
{ |
959
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
960
|
|
|
} |
961
|
|
|
|
962
|
|
|
/** |
963
|
|
|
* Implements hook "language.add.before" |
964
|
|
|
*/ |
965
|
|
|
public function hookLanguageAddBefore() |
966
|
|
|
{ |
967
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
968
|
|
|
} |
969
|
|
|
|
970
|
|
|
/** |
971
|
|
|
* Implements hook "language.add.after" |
972
|
|
|
*/ |
973
|
|
|
public function hookLanguageAddAfter() |
974
|
|
|
{ |
975
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
976
|
|
|
} |
977
|
|
|
|
978
|
|
|
/** |
979
|
|
|
* Implements hook "language.update.before" |
980
|
|
|
*/ |
981
|
|
|
public function hookLanguageUpdateBefore() |
982
|
|
|
{ |
983
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
984
|
|
|
} |
985
|
|
|
|
986
|
|
|
/** |
987
|
|
|
* Implements hook "language.update.after" |
988
|
|
|
*/ |
989
|
|
|
public function hookLanguageUpdateAfter() |
990
|
|
|
{ |
991
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
992
|
|
|
} |
993
|
|
|
|
994
|
|
|
/** |
995
|
|
|
* Implements hook "language.delete.before" |
996
|
|
|
*/ |
997
|
|
|
public function hookLanguageDeleteBefore() |
998
|
|
|
{ |
999
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1000
|
|
|
} |
1001
|
|
|
|
1002
|
|
|
/** |
1003
|
|
|
* Implements hook "language.delete.after" |
1004
|
|
|
*/ |
1005
|
|
|
public function hookLanguageDeleteAfter() |
1006
|
|
|
{ |
1007
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1008
|
|
|
} |
1009
|
|
|
|
1010
|
|
|
/** |
1011
|
|
|
* Implements hook "mail.send.before" |
1012
|
|
|
*/ |
1013
|
|
|
public function hookMailSendBefore() |
1014
|
|
|
{ |
1015
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1016
|
|
|
} |
1017
|
|
|
|
1018
|
|
|
/** |
1019
|
|
|
* Implements hook "mail.send.after" |
1020
|
|
|
*/ |
1021
|
|
|
public function hookMailSendAfter() |
1022
|
|
|
{ |
1023
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1024
|
|
|
} |
1025
|
|
|
|
1026
|
|
|
/** |
1027
|
|
|
* Implements hook "module.enable.before" |
1028
|
|
|
*/ |
1029
|
|
|
public function hookModuleEnableBefore() |
1030
|
|
|
{ |
1031
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1032
|
|
|
} |
1033
|
|
|
|
1034
|
|
|
/** |
1035
|
|
|
* Implements hook "module.enable.after" |
1036
|
|
|
*/ |
1037
|
|
|
public function hookModuleEnableAfter() |
1038
|
|
|
{ |
1039
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1040
|
|
|
} |
1041
|
|
|
|
1042
|
|
|
/** |
1043
|
|
|
* Implements hook "module.disable.before" |
1044
|
|
|
*/ |
1045
|
|
|
public function hookModuleDisableBefore() |
1046
|
|
|
{ |
1047
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1048
|
|
|
} |
1049
|
|
|
|
1050
|
|
|
/** |
1051
|
|
|
* Implements hook "module.disable.after" |
1052
|
|
|
*/ |
1053
|
|
|
public function hookModuleDisableAfter() |
1054
|
|
|
{ |
1055
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1056
|
|
|
} |
1057
|
|
|
|
1058
|
|
|
/** |
1059
|
|
|
* Implements hook "module.install.after" |
1060
|
|
|
*/ |
1061
|
|
|
public function hookModuleInstallAfter() |
1062
|
|
|
{ |
1063
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1064
|
|
|
} |
1065
|
|
|
|
1066
|
|
|
/** |
1067
|
|
|
* Implements hook "module.uninstall.before" |
1068
|
|
|
*/ |
1069
|
|
|
public function hookModuleUninstallBefore() |
1070
|
|
|
{ |
1071
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1072
|
|
|
} |
1073
|
|
|
|
1074
|
|
|
/** |
1075
|
|
|
* Implements hook "module.uninstall.after" |
1076
|
|
|
*/ |
1077
|
|
|
public function hookModuleUninstallAfter() |
1078
|
|
|
{ |
1079
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1080
|
|
|
} |
1081
|
|
|
|
1082
|
|
|
/** |
1083
|
|
|
* Implements hook "order.update.before" |
1084
|
|
|
*/ |
1085
|
|
|
public function hookOrderUpdateBefore() |
1086
|
|
|
{ |
1087
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1088
|
|
|
} |
1089
|
|
|
|
1090
|
|
|
/** |
1091
|
|
|
* Implements hook "order.update.after" |
1092
|
|
|
*/ |
1093
|
|
|
public function hookOrderUpdateAfter() |
1094
|
|
|
{ |
1095
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1096
|
|
|
} |
1097
|
|
|
|
1098
|
|
|
/** |
1099
|
|
|
* Implements hook "order.delete.before" |
1100
|
|
|
*/ |
1101
|
|
|
public function hookOrderDeleteBefore() |
1102
|
|
|
{ |
1103
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1104
|
|
|
} |
1105
|
|
|
|
1106
|
|
|
/** |
1107
|
|
|
* Implements hook "order.delete.after" |
1108
|
|
|
*/ |
1109
|
|
|
public function hookOrderDeleteAfter() |
1110
|
|
|
{ |
1111
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1112
|
|
|
} |
1113
|
|
|
|
1114
|
|
|
/** |
1115
|
|
|
* Implements hook "order.submit.before" |
1116
|
|
|
*/ |
1117
|
|
|
public function hookOrderSubmitBefore() |
1118
|
|
|
{ |
1119
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1120
|
|
|
} |
1121
|
|
|
|
1122
|
|
|
/** |
1123
|
|
|
* Implements hook "order.submit.after" |
1124
|
|
|
*/ |
1125
|
|
|
public function hookOrderSubmitAfter() |
1126
|
|
|
{ |
1127
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1128
|
|
|
} |
1129
|
|
|
|
1130
|
|
|
/** |
1131
|
|
|
* Implements hook "order.add.before" |
1132
|
|
|
*/ |
1133
|
|
|
public function hookOrderAddBefore() |
1134
|
|
|
{ |
1135
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1136
|
|
|
} |
1137
|
|
|
|
1138
|
|
|
/** |
1139
|
|
|
* Implements hook "order.add.after" |
1140
|
|
|
*/ |
1141
|
|
|
public function hookOrderAddAfter() |
1142
|
|
|
{ |
1143
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1144
|
|
|
} |
1145
|
|
|
|
1146
|
|
|
/** |
1147
|
|
|
* Implements hook "page.add.before" |
1148
|
|
|
*/ |
1149
|
|
|
public function hookPageAddBefore() |
1150
|
|
|
{ |
1151
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1152
|
|
|
} |
1153
|
|
|
|
1154
|
|
|
/** |
1155
|
|
|
* Implements hook "page.add.after" |
1156
|
|
|
*/ |
1157
|
|
|
public function hookPageAddAfter() |
1158
|
|
|
{ |
1159
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1160
|
|
|
} |
1161
|
|
|
|
1162
|
|
|
/** |
1163
|
|
|
* Implements hook "page.update.before" |
1164
|
|
|
*/ |
1165
|
|
|
public function hookPageUpdateBefore() |
1166
|
|
|
{ |
1167
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1168
|
|
|
} |
1169
|
|
|
|
1170
|
|
|
/** |
1171
|
|
|
* Implements hook "page.update.after" |
1172
|
|
|
*/ |
1173
|
|
|
public function hookPageUpdateAfter() |
1174
|
|
|
{ |
1175
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1176
|
|
|
} |
1177
|
|
|
|
1178
|
|
|
/** |
1179
|
|
|
* Implements hook "page.delete.before" |
1180
|
|
|
*/ |
1181
|
|
|
public function hookPageDeleteBefore() |
1182
|
|
|
{ |
1183
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1184
|
|
|
} |
1185
|
|
|
|
1186
|
|
|
/** |
1187
|
|
|
* Implements hook "page.delete.after" |
1188
|
|
|
*/ |
1189
|
|
|
public function hookPageDeleteAfter() |
1190
|
|
|
{ |
1191
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1192
|
|
|
} |
1193
|
|
|
|
1194
|
|
|
/** |
1195
|
|
|
* Implements hook "price.rule.add.before" |
1196
|
|
|
*/ |
1197
|
|
|
public function hookPriceRuleAddBefore() |
1198
|
|
|
{ |
1199
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1200
|
|
|
} |
1201
|
|
|
|
1202
|
|
|
/** |
1203
|
|
|
* Implements hook "price.rule.add.after" |
1204
|
|
|
*/ |
1205
|
|
|
public function hookPriceRuleAddAfter() |
1206
|
|
|
{ |
1207
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1208
|
|
|
} |
1209
|
|
|
|
1210
|
|
|
/** |
1211
|
|
|
* Implements hook "price.rule.update.before" |
1212
|
|
|
*/ |
1213
|
|
|
public function hookPriceRuleUpdateBefore() |
1214
|
|
|
{ |
1215
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1216
|
|
|
} |
1217
|
|
|
|
1218
|
|
|
/** |
1219
|
|
|
* Implements hook "price.rule.update.after" |
1220
|
|
|
*/ |
1221
|
|
|
public function hookPriceRuleUpdateAfter() |
1222
|
|
|
{ |
1223
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1224
|
|
|
} |
1225
|
|
|
|
1226
|
|
|
/** |
1227
|
|
|
* Implements hook "price.rule.delete.before" |
1228
|
|
|
*/ |
1229
|
|
|
public function hookPriceRuleDeleteBefore() |
1230
|
|
|
{ |
1231
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1232
|
|
|
} |
1233
|
|
|
|
1234
|
|
|
/** |
1235
|
|
|
* Implements hook "price.rule.delete.after" |
1236
|
|
|
*/ |
1237
|
|
|
public function hookPriceRuleDeleteAfter() |
1238
|
|
|
{ |
1239
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1240
|
|
|
} |
1241
|
|
|
|
1242
|
|
|
/** |
1243
|
|
|
* Implements hook "product.add.before" |
1244
|
|
|
*/ |
1245
|
|
|
public function hookProductAddBefore() |
1246
|
|
|
{ |
1247
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1248
|
|
|
} |
1249
|
|
|
|
1250
|
|
|
/** |
1251
|
|
|
* Implements hook "product.add.after" |
1252
|
|
|
*/ |
1253
|
|
|
public function hookProductAddAfter() |
1254
|
|
|
{ |
1255
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1256
|
|
|
} |
1257
|
|
|
|
1258
|
|
|
/** |
1259
|
|
|
* Implements hook "product.update.before" |
1260
|
|
|
*/ |
1261
|
|
|
public function hookProductUpdateBefore() |
1262
|
|
|
{ |
1263
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1264
|
|
|
} |
1265
|
|
|
|
1266
|
|
|
/** |
1267
|
|
|
* Implements hook "product.update.after" |
1268
|
|
|
*/ |
1269
|
|
|
public function hookProductUpdateAfter() |
1270
|
|
|
{ |
1271
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1272
|
|
|
} |
1273
|
|
|
|
1274
|
|
|
/** |
1275
|
|
|
* Implements hook "product.delete.before" |
1276
|
|
|
*/ |
1277
|
|
|
public function hookProductDeleteBefore() |
1278
|
|
|
{ |
1279
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1280
|
|
|
} |
1281
|
|
|
|
1282
|
|
|
/** |
1283
|
|
|
* Implements hook "product.delete.after" |
1284
|
|
|
*/ |
1285
|
|
|
public function hookProductDeleteAfter() |
1286
|
|
|
{ |
1287
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1288
|
|
|
} |
1289
|
|
|
|
1290
|
|
|
/** |
1291
|
|
|
* Implements hook "product.class.add.before" |
1292
|
|
|
*/ |
1293
|
|
|
public function hookProductClassAddBefore() |
1294
|
|
|
{ |
1295
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1296
|
|
|
} |
1297
|
|
|
|
1298
|
|
|
/** |
1299
|
|
|
* Implements hook "product.class.add.after" |
1300
|
|
|
*/ |
1301
|
|
|
public function hookProductClassAddAfter() |
1302
|
|
|
{ |
1303
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1304
|
|
|
} |
1305
|
|
|
|
1306
|
|
|
/** |
1307
|
|
|
* Implements hook "product.class.delete.before" |
1308
|
|
|
*/ |
1309
|
|
|
public function hookProductClassDeleteBefore() |
1310
|
|
|
{ |
1311
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1312
|
|
|
} |
1313
|
|
|
|
1314
|
|
|
/** |
1315
|
|
|
* Implements hook "product.class.delete.after" |
1316
|
|
|
*/ |
1317
|
|
|
public function hookProductClassDeleteAfter() |
1318
|
|
|
{ |
1319
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1320
|
|
|
} |
1321
|
|
|
|
1322
|
|
|
/** |
1323
|
|
|
* Implements hook "product.class.update.before" |
1324
|
|
|
*/ |
1325
|
|
|
public function hookProductClassUpdateBefore() |
1326
|
|
|
{ |
1327
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1328
|
|
|
} |
1329
|
|
|
|
1330
|
|
|
/** |
1331
|
|
|
* Implements hook "product.class.update.after" |
1332
|
|
|
*/ |
1333
|
|
|
public function hookProductClassUpdateAfter() |
1334
|
|
|
{ |
1335
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1336
|
|
|
} |
1337
|
|
|
|
1338
|
|
|
/** |
1339
|
|
|
* Implements hook "product.class.add.field.before" |
1340
|
|
|
*/ |
1341
|
|
|
public function hookProductClassAddFieldBefore() |
1342
|
|
|
{ |
1343
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1344
|
|
|
} |
1345
|
|
|
|
1346
|
|
|
/** |
1347
|
|
|
* Implements hook "product.class.add.field.after" |
1348
|
|
|
*/ |
1349
|
|
|
public function hookProductClassAddFieldAfter() |
1350
|
|
|
{ |
1351
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1352
|
|
|
} |
1353
|
|
|
|
1354
|
|
|
/** |
1355
|
|
|
* Implements hook "product.class.delete.field.before" |
1356
|
|
|
*/ |
1357
|
|
|
public function hookProductClassDeleteFieldBefore() |
1358
|
|
|
{ |
1359
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1360
|
|
|
} |
1361
|
|
|
|
1362
|
|
|
/** |
1363
|
|
|
* Implements hook "product.class.delete.field.after" |
1364
|
|
|
*/ |
1365
|
|
|
public function hookProductClassDeleteFieldAfter() |
1366
|
|
|
{ |
1367
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1368
|
|
|
} |
1369
|
|
|
|
1370
|
|
|
/** |
1371
|
|
|
* Implements hook "product.field.add.before" |
1372
|
|
|
*/ |
1373
|
|
|
public function hookProductFieldAddBefore() |
1374
|
|
|
{ |
1375
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1376
|
|
|
} |
1377
|
|
|
|
1378
|
|
|
/** |
1379
|
|
|
* Implements hook "product.field.add.after" |
1380
|
|
|
*/ |
1381
|
|
|
public function hookProductFieldAddAfter() |
1382
|
|
|
{ |
1383
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1384
|
|
|
} |
1385
|
|
|
|
1386
|
|
|
/** |
1387
|
|
|
* Implements hook "product.field.delete.before" |
1388
|
|
|
*/ |
1389
|
|
|
public function hookProductFieldDeleteBefore() |
1390
|
|
|
{ |
1391
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1392
|
|
|
} |
1393
|
|
|
|
1394
|
|
|
/** |
1395
|
|
|
* Implements hook "product.field.delete.after" |
1396
|
|
|
*/ |
1397
|
|
|
public function hookProductFieldDeleteAfter() |
1398
|
|
|
{ |
1399
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1400
|
|
|
} |
1401
|
|
|
|
1402
|
|
|
/** |
1403
|
|
|
* Implements hook "rating.set.before" |
1404
|
|
|
*/ |
1405
|
|
|
public function hookRatingSetBefore() |
1406
|
|
|
{ |
1407
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1408
|
|
|
} |
1409
|
|
|
|
1410
|
|
|
/** |
1411
|
|
|
* Implements hook "rating.set.after" |
1412
|
|
|
*/ |
1413
|
|
|
public function hookRatingSetAfter() |
1414
|
|
|
{ |
1415
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1416
|
|
|
} |
1417
|
|
|
|
1418
|
|
|
/** |
1419
|
|
|
* Implements hook "rating.add.user.before" |
1420
|
|
|
*/ |
1421
|
|
|
public function hookRatingAddUserBefore() |
1422
|
|
|
{ |
1423
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1424
|
|
|
} |
1425
|
|
|
|
1426
|
|
|
/** |
1427
|
|
|
* Implements hook "rating.add.user.after" |
1428
|
|
|
*/ |
1429
|
|
|
public function hookRatingAddUserAfter() |
1430
|
|
|
{ |
1431
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1432
|
|
|
} |
1433
|
|
|
|
1434
|
|
|
/** |
1435
|
|
|
* Implements hook "review.add.before" |
1436
|
|
|
*/ |
1437
|
|
|
public function hookReviewAddBefore() |
1438
|
|
|
{ |
1439
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1440
|
|
|
} |
1441
|
|
|
|
1442
|
|
|
/** |
1443
|
|
|
* Implements hook "review.add.after" |
1444
|
|
|
*/ |
1445
|
|
|
public function hookReviewAddAfter() |
1446
|
|
|
{ |
1447
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1448
|
|
|
} |
1449
|
|
|
|
1450
|
|
|
/** |
1451
|
|
|
* Implements hook "review.get.before" |
1452
|
|
|
*/ |
1453
|
|
|
public function hookReviewGetBefore() |
1454
|
|
|
{ |
1455
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1456
|
|
|
} |
1457
|
|
|
|
1458
|
|
|
/** |
1459
|
|
|
* Implements hook "review.get.after" |
1460
|
|
|
*/ |
1461
|
|
|
public function hookReviewGetAfter() |
1462
|
|
|
{ |
1463
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1464
|
|
|
} |
1465
|
|
|
|
1466
|
|
|
/** |
1467
|
|
|
* Implements hook "review.update.before" |
1468
|
|
|
*/ |
1469
|
|
|
public function hookReviewUpdateBefore() |
1470
|
|
|
{ |
1471
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1472
|
|
|
} |
1473
|
|
|
|
1474
|
|
|
/** |
1475
|
|
|
* Implements hook "review.update.after" |
1476
|
|
|
*/ |
1477
|
|
|
public function hookReviewUpdateAfter() |
1478
|
|
|
{ |
1479
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1480
|
|
|
} |
1481
|
|
|
|
1482
|
|
|
/** |
1483
|
|
|
* Implements hook "review.delete.before" |
1484
|
|
|
*/ |
1485
|
|
|
public function hookReviewDeleteBefore() |
1486
|
|
|
{ |
1487
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1488
|
|
|
} |
1489
|
|
|
|
1490
|
|
|
/** |
1491
|
|
|
* Implements hook "review.delete.after" |
1492
|
|
|
*/ |
1493
|
|
|
public function hookReviewDeleteAfter() |
1494
|
|
|
{ |
1495
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1496
|
|
|
} |
1497
|
|
|
|
1498
|
|
|
/** |
1499
|
|
|
* Implements hook "sku.add.before" |
1500
|
|
|
*/ |
1501
|
|
|
public function hookSkuAddBefore() |
1502
|
|
|
{ |
1503
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1504
|
|
|
} |
1505
|
|
|
|
1506
|
|
|
/** |
1507
|
|
|
* Implements hook "sku.add.after" |
1508
|
|
|
*/ |
1509
|
|
|
public function hookSkuAddAfter() |
1510
|
|
|
{ |
1511
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1512
|
|
|
} |
1513
|
|
|
|
1514
|
|
|
/** |
1515
|
|
|
* Implements hook "sku.delete.before" |
1516
|
|
|
*/ |
1517
|
|
|
public function hookSkuDeleteBefore() |
1518
|
|
|
{ |
1519
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1520
|
|
|
} |
1521
|
|
|
|
1522
|
|
|
/** |
1523
|
|
|
* Implements hook "sku.delete.after" |
1524
|
|
|
*/ |
1525
|
|
|
public function hookSkuDeleteAfter() |
1526
|
|
|
{ |
1527
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1528
|
|
|
} |
1529
|
|
|
|
1530
|
|
|
/** |
1531
|
|
|
* Implements hook "state.add.before" |
1532
|
|
|
*/ |
1533
|
|
|
public function hookStateAddBefore() |
1534
|
|
|
{ |
1535
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1536
|
|
|
} |
1537
|
|
|
|
1538
|
|
|
/** |
1539
|
|
|
* Implements hook "state.add.after" |
1540
|
|
|
*/ |
1541
|
|
|
public function hookStateAddAfter() |
1542
|
|
|
{ |
1543
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1544
|
|
|
} |
1545
|
|
|
|
1546
|
|
|
/** |
1547
|
|
|
* Implements hook "state.delete.before" |
1548
|
|
|
*/ |
1549
|
|
|
public function hookStateDeleteBefore() |
1550
|
|
|
{ |
1551
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1552
|
|
|
} |
1553
|
|
|
|
1554
|
|
|
/** |
1555
|
|
|
* Implements hook "state.delete.after" |
1556
|
|
|
*/ |
1557
|
|
|
public function hookStateDeleteAfter() |
1558
|
|
|
{ |
1559
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1560
|
|
|
} |
1561
|
|
|
|
1562
|
|
|
/** |
1563
|
|
|
* Implements hook "state.update.before" |
1564
|
|
|
*/ |
1565
|
|
|
public function hookStateUpdateBefore() |
1566
|
|
|
{ |
1567
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1568
|
|
|
} |
1569
|
|
|
|
1570
|
|
|
/** |
1571
|
|
|
* Implements hook "state.update.after" |
1572
|
|
|
*/ |
1573
|
|
|
public function hookStateUpdateAfter() |
1574
|
|
|
{ |
1575
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1576
|
|
|
} |
1577
|
|
|
|
1578
|
|
|
/** |
1579
|
|
|
* Implements hook "store.add.before" |
1580
|
|
|
*/ |
1581
|
|
|
public function hookStoreAddBefore() |
1582
|
|
|
{ |
1583
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1584
|
|
|
} |
1585
|
|
|
|
1586
|
|
|
/** |
1587
|
|
|
* Implements hook "store.add.after" |
1588
|
|
|
*/ |
1589
|
|
|
public function hookStoreAddAfter() |
1590
|
|
|
{ |
1591
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1592
|
|
|
} |
1593
|
|
|
|
1594
|
|
|
/** |
1595
|
|
|
* Implements hook "store.update.before" |
1596
|
|
|
*/ |
1597
|
|
|
public function hookStoreUpdateBefore() |
1598
|
|
|
{ |
1599
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1600
|
|
|
} |
1601
|
|
|
|
1602
|
|
|
/** |
1603
|
|
|
* Implements hook "store.update.after" |
1604
|
|
|
*/ |
1605
|
|
|
public function hookStoreUpdateAfter() |
1606
|
|
|
{ |
1607
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1608
|
|
|
} |
1609
|
|
|
|
1610
|
|
|
/** |
1611
|
|
|
* Implements hook "store.delete.before" |
1612
|
|
|
*/ |
1613
|
|
|
public function hookStoreDeleteBefore() |
1614
|
|
|
{ |
1615
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1616
|
|
|
} |
1617
|
|
|
|
1618
|
|
|
/** |
1619
|
|
|
* Implements hook "store.delete.after" |
1620
|
|
|
*/ |
1621
|
|
|
public function hookStoreDeleteAfter() |
1622
|
|
|
{ |
1623
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1624
|
|
|
} |
1625
|
|
|
|
1626
|
|
|
/** |
1627
|
|
|
* Implements hook "transaction.add.before" |
1628
|
|
|
*/ |
1629
|
|
|
public function hookTransactionAddBefore() |
1630
|
|
|
{ |
1631
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1632
|
|
|
} |
1633
|
|
|
|
1634
|
|
|
/** |
1635
|
|
|
* Implements hook "transaction.add.after" |
1636
|
|
|
*/ |
1637
|
|
|
public function hookTransactionAddAfter() |
1638
|
|
|
{ |
1639
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1640
|
|
|
} |
1641
|
|
|
|
1642
|
|
|
/** |
1643
|
|
|
* Implements hook "transaction.delete.before" |
1644
|
|
|
*/ |
1645
|
|
|
public function hookTransactionDeleteBefore() |
1646
|
|
|
{ |
1647
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1648
|
|
|
} |
1649
|
|
|
|
1650
|
|
|
/** |
1651
|
|
|
* Implements hook "transaction.delete.after" |
1652
|
|
|
*/ |
1653
|
|
|
public function hookTransactionDeleteAfter() |
1654
|
|
|
{ |
1655
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1656
|
|
|
} |
1657
|
|
|
|
1658
|
|
|
/** |
1659
|
|
|
* Implements hook "trigger.add.before" |
1660
|
|
|
*/ |
1661
|
|
|
public function hookTriggerAddBefore() |
1662
|
|
|
{ |
1663
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1664
|
|
|
} |
1665
|
|
|
|
1666
|
|
|
/** |
1667
|
|
|
* Implements hook "trigger.add.after" |
1668
|
|
|
*/ |
1669
|
|
|
public function hookTriggerAddAfter() |
1670
|
|
|
{ |
1671
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1672
|
|
|
} |
1673
|
|
|
|
1674
|
|
|
/** |
1675
|
|
|
* Implements hook "trigger.delete.before" |
1676
|
|
|
*/ |
1677
|
|
|
public function hookTriggerDeleteBefore() |
1678
|
|
|
{ |
1679
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1680
|
|
|
} |
1681
|
|
|
|
1682
|
|
|
/** |
1683
|
|
|
* Implements hook "trigger.delete.after" |
1684
|
|
|
*/ |
1685
|
|
|
public function hookTriggerDeleteAfter() |
1686
|
|
|
{ |
1687
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1688
|
|
|
} |
1689
|
|
|
|
1690
|
|
|
/** |
1691
|
|
|
* Implements hook "trigger.update.before" |
1692
|
|
|
*/ |
1693
|
|
|
public function hookTriggerUpdateBefore() |
1694
|
|
|
{ |
1695
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1696
|
|
|
} |
1697
|
|
|
|
1698
|
|
|
/** |
1699
|
|
|
* Implements hook "trigger.update.after" |
1700
|
|
|
*/ |
1701
|
|
|
public function hookTriggerUpdateAfter() |
1702
|
|
|
{ |
1703
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1704
|
|
|
} |
1705
|
|
|
|
1706
|
|
|
/** |
1707
|
|
|
* Implements hook "user.add.before" |
1708
|
|
|
*/ |
1709
|
|
|
public function hookUserAddBefore() |
1710
|
|
|
{ |
1711
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1712
|
|
|
} |
1713
|
|
|
|
1714
|
|
|
/** |
1715
|
|
|
* Implements hook "user.add.after" |
1716
|
|
|
*/ |
1717
|
|
|
public function hookUserAddAfter() |
1718
|
|
|
{ |
1719
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1720
|
|
|
} |
1721
|
|
|
|
1722
|
|
|
/** |
1723
|
|
|
* Implements hook "user.update.before" |
1724
|
|
|
*/ |
1725
|
|
|
public function hookUserUpdateBefore() |
1726
|
|
|
{ |
1727
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1728
|
|
|
} |
1729
|
|
|
|
1730
|
|
|
/** |
1731
|
|
|
* Implements hook "user.update.after" |
1732
|
|
|
*/ |
1733
|
|
|
public function hookUserUpdateAfter() |
1734
|
|
|
{ |
1735
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1736
|
|
|
} |
1737
|
|
|
|
1738
|
|
|
/** |
1739
|
|
|
* Implements hook "user.delete.before" |
1740
|
|
|
*/ |
1741
|
|
|
public function hookUserDeleteBefore() |
1742
|
|
|
{ |
1743
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1744
|
|
|
} |
1745
|
|
|
|
1746
|
|
|
/** |
1747
|
|
|
* Implements hook "user.delete.after" |
1748
|
|
|
*/ |
1749
|
|
|
public function hookUserDeleteAfter() |
1750
|
|
|
{ |
1751
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1752
|
|
|
} |
1753
|
|
|
|
1754
|
|
|
/** |
1755
|
|
|
* Implements hook "user.login.before" |
1756
|
|
|
*/ |
1757
|
|
|
public function hookUserLoginBefore() |
1758
|
|
|
{ |
1759
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1760
|
|
|
} |
1761
|
|
|
|
1762
|
|
|
/** |
1763
|
|
|
* Implements hook "user.login.after" |
1764
|
|
|
*/ |
1765
|
|
|
public function hookUserLoginAfter() |
1766
|
|
|
{ |
1767
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1768
|
|
|
} |
1769
|
|
|
|
1770
|
|
|
/** |
1771
|
|
|
* Implements hook "user.register.before" |
1772
|
|
|
*/ |
1773
|
|
|
public function hookUserRegisterBefore() |
1774
|
|
|
{ |
1775
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1776
|
|
|
} |
1777
|
|
|
|
1778
|
|
|
/** |
1779
|
|
|
* Implements hook "user.register.after" |
1780
|
|
|
*/ |
1781
|
|
|
public function hookUserRegisterAfter() |
1782
|
|
|
{ |
1783
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1784
|
|
|
} |
1785
|
|
|
|
1786
|
|
|
/** |
1787
|
|
|
* Implements hook "user.logout.before" |
1788
|
|
|
*/ |
1789
|
|
|
public function hookUserLogoutBefore() |
1790
|
|
|
{ |
1791
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1792
|
|
|
} |
1793
|
|
|
|
1794
|
|
|
/** |
1795
|
|
|
* Implements hook "user.logout.after" |
1796
|
|
|
*/ |
1797
|
|
|
public function hookUserLogoutAfter() |
1798
|
|
|
{ |
1799
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1800
|
|
|
} |
1801
|
|
|
|
1802
|
|
|
/** |
1803
|
|
|
* Implements hook "user.reset.password.before" |
1804
|
|
|
*/ |
1805
|
|
|
public function hookUserResetPasswordBefore() |
1806
|
|
|
{ |
1807
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1808
|
|
|
} |
1809
|
|
|
|
1810
|
|
|
/** |
1811
|
|
|
* Implements hook "user.reset.password.after" |
1812
|
|
|
*/ |
1813
|
|
|
public function hookUserResetPasswordAfter() |
1814
|
|
|
{ |
1815
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1816
|
|
|
} |
1817
|
|
|
|
1818
|
|
|
/** |
1819
|
|
|
* Implements hook "user.role.delete.before" |
1820
|
|
|
*/ |
1821
|
|
|
public function hookUserRoleDeleteBefore() |
1822
|
|
|
{ |
1823
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1824
|
|
|
} |
1825
|
|
|
|
1826
|
|
|
/** |
1827
|
|
|
* Implements hook "user.role.delete.after" |
1828
|
|
|
*/ |
1829
|
|
|
public function hookUserRoleDeleteAfter() |
1830
|
|
|
{ |
1831
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1832
|
|
|
} |
1833
|
|
|
|
1834
|
|
|
/** |
1835
|
|
|
* Implements hook "user.role.add.before" |
1836
|
|
|
*/ |
1837
|
|
|
public function hookUserRoleAddBefore() |
1838
|
|
|
{ |
1839
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1840
|
|
|
} |
1841
|
|
|
|
1842
|
|
|
/** |
1843
|
|
|
* Implements hook "user.role.add.after" |
1844
|
|
|
*/ |
1845
|
|
|
public function hookUserRoleAddAfter() |
1846
|
|
|
{ |
1847
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1848
|
|
|
} |
1849
|
|
|
|
1850
|
|
|
/** |
1851
|
|
|
* Implements hook "user.role.update.before" |
1852
|
|
|
*/ |
1853
|
|
|
public function hookUserRoleUpdateBefore() |
1854
|
|
|
{ |
1855
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1856
|
|
|
} |
1857
|
|
|
|
1858
|
|
|
/** |
1859
|
|
|
* Implements hook "user.role.update.after" |
1860
|
|
|
*/ |
1861
|
|
|
public function hookUserRoleUpdateAfter() |
1862
|
|
|
{ |
1863
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1864
|
|
|
} |
1865
|
|
|
|
1866
|
|
|
/** |
1867
|
|
|
* Implements hook "wishlist.add.before" |
1868
|
|
|
*/ |
1869
|
|
|
public function hookWishlistAddBefore() |
1870
|
|
|
{ |
1871
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1872
|
|
|
} |
1873
|
|
|
|
1874
|
|
|
/** |
1875
|
|
|
* Implements hook "wishlist.add.after" |
1876
|
|
|
*/ |
1877
|
|
|
public function hookWishlistAddAfter() |
1878
|
|
|
{ |
1879
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1880
|
|
|
} |
1881
|
|
|
|
1882
|
|
|
/** |
1883
|
|
|
* Implements hook "wishlist.add.product.before" |
1884
|
|
|
*/ |
1885
|
|
|
public function hookWishlistAddProductBefore() |
1886
|
|
|
{ |
1887
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1888
|
|
|
} |
1889
|
|
|
|
1890
|
|
|
/** |
1891
|
|
|
* Implements hook "wishlist.add.product.after" |
1892
|
|
|
*/ |
1893
|
|
|
public function hookWishlistAddProductAfter() |
1894
|
|
|
{ |
1895
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1896
|
|
|
} |
1897
|
|
|
|
1898
|
|
|
/** |
1899
|
|
|
* Implements hook "wishlist.delete.product.before" |
1900
|
|
|
*/ |
1901
|
|
|
public function hookWishlistDeleteProductBefore() |
1902
|
|
|
{ |
1903
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1904
|
|
|
} |
1905
|
|
|
|
1906
|
|
|
/** |
1907
|
|
|
* Implements hook "wishlist.delete.product.after" |
1908
|
|
|
*/ |
1909
|
|
|
public function hookWishlistDeleteProductAfter() |
1910
|
|
|
{ |
1911
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1912
|
|
|
} |
1913
|
|
|
|
1914
|
|
|
/** |
1915
|
|
|
* Implements hook "wishlist.delete.before" |
1916
|
|
|
*/ |
1917
|
|
|
public function hookWishlistDeleteBefore() |
1918
|
|
|
{ |
1919
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1920
|
|
|
} |
1921
|
|
|
|
1922
|
|
|
/** |
1923
|
|
|
* Implements hook "wishlist.delete.after" |
1924
|
|
|
*/ |
1925
|
|
|
public function hookWishlistDeleteAfter() |
1926
|
|
|
{ |
1927
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1928
|
|
|
} |
1929
|
|
|
|
1930
|
|
|
/** |
1931
|
|
|
* Implements hook "zone.add.before" |
1932
|
|
|
*/ |
1933
|
|
|
public function hookZoneAddBefore() |
1934
|
|
|
{ |
1935
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1936
|
|
|
} |
1937
|
|
|
|
1938
|
|
|
/** |
1939
|
|
|
* Implements hook "zone.add.after" |
1940
|
|
|
*/ |
1941
|
|
|
public function hookZoneAddAfter() |
1942
|
|
|
{ |
1943
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1944
|
|
|
} |
1945
|
|
|
|
1946
|
|
|
/** |
1947
|
|
|
* Implements hook "zone.update.before" |
1948
|
|
|
*/ |
1949
|
|
|
public function hookZoneUpdateBefore() |
1950
|
|
|
{ |
1951
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1952
|
|
|
} |
1953
|
|
|
|
1954
|
|
|
/** |
1955
|
|
|
* Implements hook "zone.update.after" |
1956
|
|
|
*/ |
1957
|
|
|
public function hookZoneUpdateAfter() |
1958
|
|
|
{ |
1959
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1960
|
|
|
} |
1961
|
|
|
|
1962
|
|
|
/** |
1963
|
|
|
* Implements hook "zone.delete.before" |
1964
|
|
|
*/ |
1965
|
|
|
public function hookZoneDeleteBefore() |
1966
|
|
|
{ |
1967
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1968
|
|
|
} |
1969
|
|
|
|
1970
|
|
|
/** |
1971
|
|
|
* Implements hook "zone.delete.after" |
1972
|
|
|
*/ |
1973
|
|
|
public function hookZoneDeleteAfter() |
1974
|
|
|
{ |
1975
|
|
|
$this->sendPayload(__FUNCTION__, func_get_args()); |
1976
|
|
|
} |
1977
|
|
|
|
1978
|
|
|
} |
1979
|
|
|
|