Completed
Push — master ( 0f9fbe...8ddba0 )
by Iurii
01:10
created

Main::getHttpModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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