Complex classes like Main often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Main, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
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) |
||
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) |
||
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) |
||
83 | |||
84 | /** |
||
85 | * Returns socket client class instance |
||
86 | * @return \gplcart\core\models\Http |
||
87 | */ |
||
88 | protected function getHttpModel() |
||
94 | |||
95 | /** |
||
96 | * Implements hook "route.list" |
||
97 | * @param array $routes |
||
98 | */ |
||
99 | public function hookRouteList(&$routes) |
||
108 | |||
109 | /** |
||
110 | * Implements hook "module.install.before" |
||
111 | * @param null|string |
||
112 | */ |
||
113 | public function hookModuleInstallBefore(&$result) |
||
123 | |||
124 | /** |
||
125 | * Implements hook "address.add.before" |
||
126 | */ |
||
127 | public function hookAddressAddBefore() |
||
131 | |||
132 | /** |
||
133 | * Implements hook "address.add.after" |
||
134 | */ |
||
135 | public function hookAddressAddAfter() |
||
139 | |||
140 | /** |
||
141 | * Implements hook "address.delete.before" |
||
142 | */ |
||
143 | public function hookAddressDeleteBefore() |
||
147 | |||
148 | /** |
||
149 | * Implements hook "address.delete.after" |
||
150 | */ |
||
151 | public function hookAddressDeleteAfter() |
||
155 | |||
156 | /** |
||
157 | * Implements hook "address.update.before" |
||
158 | */ |
||
159 | public function hookAddressUpdateBefore() |
||
163 | |||
164 | /** |
||
165 | * Implements hook "address.update.after" |
||
166 | */ |
||
167 | public function hookAddressUpdateAfter() |
||
171 | |||
172 | /** |
||
173 | * Implements hook "backup.add.before" |
||
174 | */ |
||
175 | public function hookBackupAddBefore() |
||
179 | |||
180 | /** |
||
181 | * Implements hook "backup.add.after" |
||
182 | */ |
||
183 | public function hookBackupAddAfter() |
||
187 | |||
188 | /** |
||
189 | * Implements hook "backup.delete.before" |
||
190 | */ |
||
191 | public function hookBackupDeleteBefore() |
||
195 | |||
196 | /** |
||
197 | * Implements hook "backup.delete.after" |
||
198 | */ |
||
199 | public function hookBackupDeleteAfter() |
||
203 | |||
204 | /** |
||
205 | * Implements hook "cart.add.product.before" |
||
206 | */ |
||
207 | public function hookCartAddProductBefore() |
||
211 | |||
212 | /** |
||
213 | * Implements hook "cart.add.product.after" |
||
214 | */ |
||
215 | public function hookCartAddProductAfter() |
||
219 | |||
220 | /** |
||
221 | * Implements hook "cart.add.before" |
||
222 | */ |
||
223 | public function hookCartAddBefore() |
||
227 | |||
228 | /** |
||
229 | * Implements hook "cart.add.after" |
||
230 | */ |
||
231 | public function hookCartAddAfter() |
||
235 | |||
236 | /** |
||
237 | * Implements hook "cart.update.before" |
||
238 | */ |
||
239 | public function hookCartUpdateBefore() |
||
243 | |||
244 | /** |
||
245 | * Implements hook "cart.update.after" |
||
246 | */ |
||
247 | public function hookCartUpdateAfter() |
||
251 | |||
252 | /** |
||
253 | * Implements hook "cart.move.wishlist.before" |
||
254 | */ |
||
255 | public function hookCartMoveWishlistBefore() |
||
259 | |||
260 | /** |
||
261 | * Implements hook "cart.move.wishlist.after" |
||
262 | */ |
||
263 | public function hookCartMoveWishlistAfter() |
||
267 | |||
268 | /** |
||
269 | * Implements hook "cart.login.before" |
||
270 | */ |
||
271 | public function hookCartLoginBefore() |
||
275 | |||
276 | /** |
||
277 | * Implements hook "cart.login.after" |
||
278 | */ |
||
279 | public function hookCartLoginAfter() |
||
283 | |||
284 | /** |
||
285 | * Implements hook "cart.delete.before" |
||
286 | */ |
||
287 | public function hookCartDeleteBefore() |
||
291 | |||
292 | /** |
||
293 | * Implements hook "cart.delete.after" |
||
294 | */ |
||
295 | public function hookCartDeleteAfter() |
||
299 | |||
300 | /** |
||
301 | * Implements hook "category.add.before" |
||
302 | */ |
||
303 | public function hookCategoryAddBefore() |
||
307 | |||
308 | /** |
||
309 | * Implements hook "category.add.after" |
||
310 | */ |
||
311 | public function hookCategoryAddAfter() |
||
315 | |||
316 | /** |
||
317 | * Implements hook "category.update.before" |
||
318 | */ |
||
319 | public function hookCategoryUpdateBefore() |
||
323 | |||
324 | /** |
||
325 | * Implements hook "category.update.after" |
||
326 | */ |
||
327 | public function hookCategoryUpdateAfter() |
||
331 | |||
332 | /** |
||
333 | * Implements hook "category.delete.before" |
||
334 | */ |
||
335 | public function hookCategoryDeleteBefore() |
||
339 | |||
340 | /** |
||
341 | * Implements hook "category.delete.after" |
||
342 | */ |
||
343 | public function hookCategoryDeleteAfter() |
||
347 | |||
348 | /** |
||
349 | * Implements hook "category.group.add.before" |
||
350 | */ |
||
351 | public function hookCategoryGroupAddBefore() |
||
355 | |||
356 | /** |
||
357 | * Implements hook "category.group.add.after" |
||
358 | */ |
||
359 | public function hookCategoryGroupAddAfter() |
||
363 | |||
364 | /** |
||
365 | * Implements hook "category.group.delete.before" |
||
366 | */ |
||
367 | public function hookCategoryGroupDeleteBefore() |
||
371 | |||
372 | /** |
||
373 | * Implements hook "category.group.delete.after" |
||
374 | */ |
||
375 | public function hookCategoryGroupDeleteAfter() |
||
379 | |||
380 | /** |
||
381 | * Implements hook "category.group.update.before" |
||
382 | */ |
||
383 | public function hookCategoryGroupUpdateBefore() |
||
387 | |||
388 | /** |
||
389 | * Implements hook "category.group.update.after" |
||
390 | */ |
||
391 | public function hookCategoryGroupUpdateAfter() |
||
395 | |||
396 | /** |
||
397 | * Implements hook "city.add.before" |
||
398 | */ |
||
399 | public function hookCityAddBefore() |
||
403 | |||
404 | /** |
||
405 | * Implements hook "city.add.after" |
||
406 | */ |
||
407 | public function hookCityAddAfter() |
||
411 | |||
412 | /** |
||
413 | * Implements hook "city.delete.before" |
||
414 | */ |
||
415 | public function hookCityDeleteBefore() |
||
419 | |||
420 | /** |
||
421 | * Implements hook "city.delete.after" |
||
422 | */ |
||
423 | public function hookCityDeleteAfter() |
||
427 | |||
428 | /** |
||
429 | * Implements hook "city.update.before" |
||
430 | */ |
||
431 | public function hookCityUpdateBefore() |
||
435 | |||
436 | /** |
||
437 | * Implements hook "city.update.after" |
||
438 | */ |
||
439 | public function hookCityUpdateAfter() |
||
443 | |||
444 | /** |
||
445 | * Implements hook "collection.add.before" |
||
446 | */ |
||
447 | public function hookCollectionAddBefore() |
||
451 | |||
452 | /** |
||
453 | * Implements hook "collection.add.after" |
||
454 | */ |
||
455 | public function hookCollectionAddAfter() |
||
459 | |||
460 | /** |
||
461 | * Implements hook "collection.delete.before" |
||
462 | */ |
||
463 | public function hookCollectionDeleteBefore() |
||
467 | |||
468 | /** |
||
469 | * Implements hook "collection.delete.after" |
||
470 | */ |
||
471 | public function hookCollectionDeleteAfter() |
||
475 | |||
476 | /** |
||
477 | * Implements hook "collection.update.before" |
||
478 | */ |
||
479 | public function hookCollectionUpdateBefore() |
||
483 | |||
484 | /** |
||
485 | * Implements hook "collection.update.after" |
||
486 | */ |
||
487 | public function hookCollectionUpdateAfter() |
||
491 | |||
492 | /** |
||
493 | * Implements hook "collection.item.add.before" |
||
494 | */ |
||
495 | public function hookCollectionItemAddBefore() |
||
499 | |||
500 | /** |
||
501 | * Implements hook "collection.item.add.after" |
||
502 | */ |
||
503 | public function hookCollectionItemAddAfter() |
||
507 | |||
508 | /** |
||
509 | * Implements hook "collection.item.delete.before" |
||
510 | */ |
||
511 | public function hookCollectionItemDeleteBefore() |
||
515 | |||
516 | /** |
||
517 | * Implements hook "collection.item.delete.after" |
||
518 | */ |
||
519 | public function hookCollectionItemDeleteAfter() |
||
523 | |||
524 | /** |
||
525 | * Implements hook "collection.item.update.before" |
||
526 | */ |
||
527 | public function hookCollectionItemUpdateBefore() |
||
531 | |||
532 | /** |
||
533 | * Implements hook "collection.item.update.after" |
||
534 | */ |
||
535 | public function hookCollectionItemUpdateAfter() |
||
539 | |||
540 | /** |
||
541 | * Implements hook "compare.add.before" |
||
542 | */ |
||
543 | public function hookCompareAddBefore() |
||
547 | |||
548 | /** |
||
549 | * Implements hook "compare.add.after" |
||
550 | */ |
||
551 | public function hookCompareAddAfter() |
||
555 | |||
556 | /** |
||
557 | * Implements hook "compare.add.product.before" |
||
558 | */ |
||
559 | public function hookCompareAddProductBefore() |
||
563 | |||
564 | /** |
||
565 | * Implements hook "compare.add.product.after" |
||
566 | */ |
||
567 | public function hookCompareAddProductAfter() |
||
571 | |||
572 | /** |
||
573 | * Implements hook "compare.delete.product.before" |
||
574 | */ |
||
575 | public function hookCompareDeleteProductBefore() |
||
579 | |||
580 | /** |
||
581 | * Implements hook "compare.delete.product.after" |
||
582 | */ |
||
583 | public function hookCompareDeleteProductAfter() |
||
587 | |||
588 | /** |
||
589 | * Implements hook "compare.delete.before" |
||
590 | */ |
||
591 | public function hookCompareDeleteBefore() |
||
595 | |||
596 | /** |
||
597 | * Implements hook "compare.delete.after" |
||
598 | */ |
||
599 | public function hookCompareDeleteAfter() |
||
603 | |||
604 | /** |
||
605 | * Implements hook "condition.met.before" |
||
606 | */ |
||
607 | public function hookConditionMetBefore() |
||
611 | |||
612 | /** |
||
613 | * Implements hook "condition.met.after" |
||
614 | */ |
||
615 | public function hookConditionMetAfter() |
||
619 | |||
620 | /** |
||
621 | * Implements hook "country.add.before" |
||
622 | */ |
||
623 | public function hookCountryAddBefore() |
||
627 | |||
628 | /** |
||
629 | * Implements hook "country.add.after" |
||
630 | */ |
||
631 | public function hookCountryAddAfter() |
||
635 | |||
636 | /** |
||
637 | * Implements hook "country.update.before" |
||
638 | */ |
||
639 | public function hookCountryUpdateBefore() |
||
643 | |||
644 | /** |
||
645 | * Implements hook "country.update.after" |
||
646 | */ |
||
647 | public function hookCountryUpdateAfter() |
||
651 | |||
652 | /** |
||
653 | * Implements hook "country.delete.before" |
||
654 | */ |
||
655 | public function hookCountryDeleteBefore() |
||
659 | |||
660 | /** |
||
661 | * Implements hook "country.delete.after" |
||
662 | */ |
||
663 | public function hookCountryDeleteAfter() |
||
667 | |||
668 | /** |
||
669 | * Implements hook "currency.update.before" |
||
670 | */ |
||
671 | public function hookCurrencyUpdateBefore() |
||
675 | |||
676 | /** |
||
677 | * Implements hook "currency.update.after" |
||
678 | */ |
||
679 | public function hookCurrencyUpdateAfter() |
||
683 | |||
684 | /** |
||
685 | * Implements hook "currency.delete.before" |
||
686 | */ |
||
687 | public function hookCurrencyDeleteBefore() |
||
691 | |||
692 | /** |
||
693 | * Implements hook "currency.delete.after" |
||
694 | */ |
||
695 | public function hookCurrencyDeleteAfter() |
||
699 | |||
700 | /** |
||
701 | * Implements hook "editor.save.before" |
||
702 | */ |
||
703 | public function hookEditorSaveBefore() |
||
707 | |||
708 | /** |
||
709 | * Implements hook "editor.save.after" |
||
710 | */ |
||
711 | public function hookEditorSaveAfter() |
||
715 | |||
716 | /** |
||
717 | * Implements hook "field.add.before" |
||
718 | */ |
||
719 | public function hookFieldAddBefore() |
||
723 | |||
724 | /** |
||
725 | * Implements hook "field.add.after" |
||
726 | */ |
||
727 | public function hookFieldAddAfter() |
||
731 | |||
732 | /** |
||
733 | * Implements hook "field.delete.before" |
||
734 | */ |
||
735 | public function hookFieldDeleteBefore() |
||
739 | |||
740 | /** |
||
741 | * Implements hook "field.delete.after" |
||
742 | */ |
||
743 | public function hookFieldDeleteAfter() |
||
747 | |||
748 | /** |
||
749 | * Implements hook "field.update.before" |
||
750 | */ |
||
751 | public function hookFieldUpdateBefore() |
||
755 | |||
756 | /** |
||
757 | * Implements hook "field.update.after" |
||
758 | */ |
||
759 | public function hookFieldUpdateAfter() |
||
763 | |||
764 | /** |
||
765 | * Implements hook "field.value.add.before" |
||
766 | */ |
||
767 | public function hookFieldValueAddBefore() |
||
771 | |||
772 | /** |
||
773 | * Implements hook "field.value.add.after" |
||
774 | */ |
||
775 | public function hookFieldValueAddAfter() |
||
779 | |||
780 | /** |
||
781 | * Implements hook "field.value.update.before" |
||
782 | */ |
||
783 | public function hookFieldValueUpdateBefore() |
||
787 | |||
788 | /** |
||
789 | * Implements hook "field.value.update.after" |
||
790 | */ |
||
791 | public function hookFieldValueUpdateAfter() |
||
795 | |||
796 | /** |
||
797 | * Implements hook "field.value.delete.before" |
||
798 | */ |
||
799 | public function hookFieldValueDeleteBefore() |
||
803 | |||
804 | /** |
||
805 | * Implements hook "field.value.delete.after" |
||
806 | */ |
||
807 | public function hookFieldValueDeleteAfter() |
||
811 | |||
812 | /** |
||
813 | * Implements hook "file.add.before" |
||
814 | */ |
||
815 | public function hookFileAddBefore() |
||
819 | |||
820 | /** |
||
821 | * Implements hook "file.add.after" |
||
822 | */ |
||
823 | public function hookFileAddAfter() |
||
827 | |||
828 | /** |
||
829 | * Implements hook "file.update.before" |
||
830 | */ |
||
831 | public function hookFileUpdateBefore() |
||
835 | |||
836 | /** |
||
837 | * Implements hook "file.update.after" |
||
838 | */ |
||
839 | public function hookFileUpdateAfter() |
||
843 | |||
844 | /** |
||
845 | * Implements hook "file.delete.before" |
||
846 | */ |
||
847 | public function hookFileDeleteBefore() |
||
851 | |||
852 | /** |
||
853 | * Implements hook "file.delete.after" |
||
854 | */ |
||
855 | public function hookFileDeleteAfter() |
||
859 | |||
860 | /** |
||
861 | * Implements hook "file.upload.before" |
||
862 | */ |
||
863 | public function hookFileUploadBefore() |
||
867 | |||
868 | /** |
||
869 | * Implements hook "file.upload.after" |
||
870 | */ |
||
871 | public function hookFileUploadAfter() |
||
875 | |||
876 | /** |
||
877 | * Implements hook "file.download.before" |
||
878 | */ |
||
879 | public function hookFileDownloadBefore() |
||
883 | |||
884 | /** |
||
885 | * Implements hook "file.download.after" |
||
886 | */ |
||
887 | public function hookFileDownloadAfter() |
||
891 | |||
892 | /** |
||
893 | * Implements hook "filter.update.before" |
||
894 | */ |
||
895 | public function hookFilterUpdateBefore() |
||
899 | |||
900 | /** |
||
901 | * Implements hook "filter.update.after" |
||
902 | */ |
||
903 | public function hookFilterUpdateAfter() |
||
907 | |||
908 | /** |
||
909 | * Implements hook "imagestyle.add.before" |
||
910 | */ |
||
911 | public function hookImagestyleAddBefore() |
||
915 | |||
916 | /** |
||
917 | * Implements hook "imagestyle.add.after" |
||
918 | */ |
||
919 | public function hookImagestyleAddAfter() |
||
923 | |||
924 | /** |
||
925 | * Implements hook "imagestyle.update.before" |
||
926 | */ |
||
927 | public function hookImagestyleUpdateBefore() |
||
931 | |||
932 | /** |
||
933 | * Implements hook "imagestyle.update.after" |
||
934 | */ |
||
935 | public function hookImagestyleUpdateAfter() |
||
939 | |||
940 | /** |
||
941 | * Implements hook "imagestyle.delete.before" |
||
942 | */ |
||
943 | public function hookImagestyleDeleteBefore() |
||
947 | |||
948 | /** |
||
949 | * Implements hook "imagestyle.delete.after" |
||
950 | */ |
||
951 | public function hookImagestyleDeleteAfter() |
||
955 | |||
956 | /** |
||
957 | * Implements hook "imagestyle.clear.cache.before" |
||
958 | */ |
||
959 | public function hookImagestyleClearCacheBefore() |
||
963 | |||
964 | /** |
||
965 | * Implements hook "imagestyle.clear.cache.after" |
||
966 | */ |
||
967 | public function hookImagestyleClearCacheAfter() |
||
971 | |||
972 | /** |
||
973 | * Implements hook "language.add.before" |
||
974 | */ |
||
975 | public function hookLanguageAddBefore() |
||
979 | |||
980 | /** |
||
981 | * Implements hook "language.add.after" |
||
982 | */ |
||
983 | public function hookLanguageAddAfter() |
||
987 | |||
988 | /** |
||
989 | * Implements hook "language.update.before" |
||
990 | */ |
||
991 | public function hookLanguageUpdateBefore() |
||
995 | |||
996 | /** |
||
997 | * Implements hook "language.update.after" |
||
998 | */ |
||
999 | public function hookLanguageUpdateAfter() |
||
1003 | |||
1004 | /** |
||
1005 | * Implements hook "language.delete.before" |
||
1006 | */ |
||
1007 | public function hookLanguageDeleteBefore() |
||
1011 | |||
1012 | /** |
||
1013 | * Implements hook "language.delete.after" |
||
1014 | */ |
||
1015 | public function hookLanguageDeleteAfter() |
||
1019 | |||
1020 | /** |
||
1021 | * Implements hook "mail.send.before" |
||
1022 | */ |
||
1023 | public function hookMailSendBefore() |
||
1027 | |||
1028 | /** |
||
1029 | * Implements hook "mail.send.after" |
||
1030 | */ |
||
1031 | public function hookMailSendAfter() |
||
1035 | |||
1036 | /** |
||
1037 | * Implements hook "module.enable.before" |
||
1038 | */ |
||
1039 | public function hookModuleEnableBefore() |
||
1043 | |||
1044 | /** |
||
1045 | * Implements hook "module.enable.after" |
||
1046 | */ |
||
1047 | public function hookModuleEnableAfter() |
||
1051 | |||
1052 | /** |
||
1053 | * Implements hook "module.disable.before" |
||
1054 | */ |
||
1055 | public function hookModuleDisableBefore() |
||
1059 | |||
1060 | /** |
||
1061 | * Implements hook "module.disable.after" |
||
1062 | */ |
||
1063 | public function hookModuleDisableAfter() |
||
1067 | |||
1068 | /** |
||
1069 | * Implements hook "module.install.after" |
||
1070 | */ |
||
1071 | public function hookModuleInstallAfter() |
||
1075 | |||
1076 | /** |
||
1077 | * Implements hook "module.uninstall.before" |
||
1078 | */ |
||
1079 | public function hookModuleUninstallBefore() |
||
1083 | |||
1084 | /** |
||
1085 | * Implements hook "module.uninstall.after" |
||
1086 | */ |
||
1087 | public function hookModuleUninstallAfter() |
||
1091 | |||
1092 | /** |
||
1093 | * Implements hook "order.update.before" |
||
1094 | */ |
||
1095 | public function hookOrderUpdateBefore() |
||
1099 | |||
1100 | /** |
||
1101 | * Implements hook "order.update.after" |
||
1102 | */ |
||
1103 | public function hookOrderUpdateAfter() |
||
1107 | |||
1108 | /** |
||
1109 | * Implements hook "order.delete.before" |
||
1110 | */ |
||
1111 | public function hookOrderDeleteBefore() |
||
1115 | |||
1116 | /** |
||
1117 | * Implements hook "order.delete.after" |
||
1118 | */ |
||
1119 | public function hookOrderDeleteAfter() |
||
1123 | |||
1124 | /** |
||
1125 | * Implements hook "order.submit.before" |
||
1126 | */ |
||
1127 | public function hookOrderSubmitBefore() |
||
1131 | |||
1132 | /** |
||
1133 | * Implements hook "order.submit.after" |
||
1134 | */ |
||
1135 | public function hookOrderSubmitAfter() |
||
1139 | |||
1140 | /** |
||
1141 | * Implements hook "order.add.before" |
||
1142 | */ |
||
1143 | public function hookOrderAddBefore() |
||
1147 | |||
1148 | /** |
||
1149 | * Implements hook "order.add.after" |
||
1150 | */ |
||
1151 | public function hookOrderAddAfter() |
||
1155 | |||
1156 | /** |
||
1157 | * Implements hook "page.add.before" |
||
1158 | */ |
||
1159 | public function hookPageAddBefore() |
||
1163 | |||
1164 | /** |
||
1165 | * Implements hook "page.add.after" |
||
1166 | */ |
||
1167 | public function hookPageAddAfter() |
||
1171 | |||
1172 | /** |
||
1173 | * Implements hook "page.update.before" |
||
1174 | */ |
||
1175 | public function hookPageUpdateBefore() |
||
1179 | |||
1180 | /** |
||
1181 | * Implements hook "page.update.after" |
||
1182 | */ |
||
1183 | public function hookPageUpdateAfter() |
||
1187 | |||
1188 | /** |
||
1189 | * Implements hook "page.delete.before" |
||
1190 | */ |
||
1191 | public function hookPageDeleteBefore() |
||
1195 | |||
1196 | /** |
||
1197 | * Implements hook "page.delete.after" |
||
1198 | */ |
||
1199 | public function hookPageDeleteAfter() |
||
1203 | |||
1204 | /** |
||
1205 | * Implements hook "price.rule.add.before" |
||
1206 | */ |
||
1207 | public function hookPriceRuleAddBefore() |
||
1211 | |||
1212 | /** |
||
1213 | * Implements hook "price.rule.add.after" |
||
1214 | */ |
||
1215 | public function hookPriceRuleAddAfter() |
||
1219 | |||
1220 | /** |
||
1221 | * Implements hook "price.rule.update.before" |
||
1222 | */ |
||
1223 | public function hookPriceRuleUpdateBefore() |
||
1227 | |||
1228 | /** |
||
1229 | * Implements hook "price.rule.update.after" |
||
1230 | */ |
||
1231 | public function hookPriceRuleUpdateAfter() |
||
1235 | |||
1236 | /** |
||
1237 | * Implements hook "price.rule.delete.before" |
||
1238 | */ |
||
1239 | public function hookPriceRuleDeleteBefore() |
||
1243 | |||
1244 | /** |
||
1245 | * Implements hook "price.rule.delete.after" |
||
1246 | */ |
||
1247 | public function hookPriceRuleDeleteAfter() |
||
1251 | |||
1252 | /** |
||
1253 | * Implements hook "product.add.before" |
||
1254 | */ |
||
1255 | public function hookProductAddBefore() |
||
1259 | |||
1260 | /** |
||
1261 | * Implements hook "product.add.after" |
||
1262 | */ |
||
1263 | public function hookProductAddAfter() |
||
1267 | |||
1268 | /** |
||
1269 | * Implements hook "product.update.before" |
||
1270 | */ |
||
1271 | public function hookProductUpdateBefore() |
||
1275 | |||
1276 | /** |
||
1277 | * Implements hook "product.update.after" |
||
1278 | */ |
||
1279 | public function hookProductUpdateAfter() |
||
1283 | |||
1284 | /** |
||
1285 | * Implements hook "product.delete.before" |
||
1286 | */ |
||
1287 | public function hookProductDeleteBefore() |
||
1291 | |||
1292 | /** |
||
1293 | * Implements hook "product.delete.after" |
||
1294 | */ |
||
1295 | public function hookProductDeleteAfter() |
||
1299 | |||
1300 | /** |
||
1301 | * Implements hook "product.class.add.before" |
||
1302 | */ |
||
1303 | public function hookProductClassAddBefore() |
||
1307 | |||
1308 | /** |
||
1309 | * Implements hook "product.class.add.after" |
||
1310 | */ |
||
1311 | public function hookProductClassAddAfter() |
||
1315 | |||
1316 | /** |
||
1317 | * Implements hook "product.class.delete.before" |
||
1318 | */ |
||
1319 | public function hookProductClassDeleteBefore() |
||
1323 | |||
1324 | /** |
||
1325 | * Implements hook "product.class.delete.after" |
||
1326 | */ |
||
1327 | public function hookProductClassDeleteAfter() |
||
1331 | |||
1332 | /** |
||
1333 | * Implements hook "product.class.update.before" |
||
1334 | */ |
||
1335 | public function hookProductClassUpdateBefore() |
||
1339 | |||
1340 | /** |
||
1341 | * Implements hook "product.class.update.after" |
||
1342 | */ |
||
1343 | public function hookProductClassUpdateAfter() |
||
1347 | |||
1348 | /** |
||
1349 | * Implements hook "product.class.add.field.before" |
||
1350 | */ |
||
1351 | public function hookProductClassAddFieldBefore() |
||
1355 | |||
1356 | /** |
||
1357 | * Implements hook "product.class.add.field.after" |
||
1358 | */ |
||
1359 | public function hookProductClassAddFieldAfter() |
||
1363 | |||
1364 | /** |
||
1365 | * Implements hook "product.class.delete.field.before" |
||
1366 | */ |
||
1367 | public function hookProductClassDeleteFieldBefore() |
||
1371 | |||
1372 | /** |
||
1373 | * Implements hook "product.class.delete.field.after" |
||
1374 | */ |
||
1375 | public function hookProductClassDeleteFieldAfter() |
||
1379 | |||
1380 | /** |
||
1381 | * Implements hook "product.field.add.before" |
||
1382 | */ |
||
1383 | public function hookProductFieldAddBefore() |
||
1387 | |||
1388 | /** |
||
1389 | * Implements hook "product.field.add.after" |
||
1390 | */ |
||
1391 | public function hookProductFieldAddAfter() |
||
1395 | |||
1396 | /** |
||
1397 | * Implements hook "product.field.delete.before" |
||
1398 | */ |
||
1399 | public function hookProductFieldDeleteBefore() |
||
1403 | |||
1404 | /** |
||
1405 | * Implements hook "product.field.delete.after" |
||
1406 | */ |
||
1407 | public function hookProductFieldDeleteAfter() |
||
1411 | |||
1412 | /** |
||
1413 | * Implements hook "rating.set.before" |
||
1414 | */ |
||
1415 | public function hookRatingSetBefore() |
||
1419 | |||
1420 | /** |
||
1421 | * Implements hook "rating.set.after" |
||
1422 | */ |
||
1423 | public function hookRatingSetAfter() |
||
1427 | |||
1428 | /** |
||
1429 | * Implements hook "rating.add.user.before" |
||
1430 | */ |
||
1431 | public function hookRatingAddUserBefore() |
||
1435 | |||
1436 | /** |
||
1437 | * Implements hook "rating.add.user.after" |
||
1438 | */ |
||
1439 | public function hookRatingAddUserAfter() |
||
1443 | |||
1444 | /** |
||
1445 | * Implements hook "review.add.before" |
||
1446 | */ |
||
1447 | public function hookReviewAddBefore() |
||
1451 | |||
1452 | /** |
||
1453 | * Implements hook "review.add.after" |
||
1454 | */ |
||
1455 | public function hookReviewAddAfter() |
||
1459 | |||
1460 | /** |
||
1461 | * Implements hook "review.get.before" |
||
1462 | */ |
||
1463 | public function hookReviewGetBefore() |
||
1467 | |||
1468 | /** |
||
1469 | * Implements hook "review.get.after" |
||
1470 | */ |
||
1471 | public function hookReviewGetAfter() |
||
1475 | |||
1476 | /** |
||
1477 | * Implements hook "review.update.before" |
||
1478 | */ |
||
1479 | public function hookReviewUpdateBefore() |
||
1483 | |||
1484 | /** |
||
1485 | * Implements hook "review.update.after" |
||
1486 | */ |
||
1487 | public function hookReviewUpdateAfter() |
||
1491 | |||
1492 | /** |
||
1493 | * Implements hook "review.delete.before" |
||
1494 | */ |
||
1495 | public function hookReviewDeleteBefore() |
||
1499 | |||
1500 | /** |
||
1501 | * Implements hook "review.delete.after" |
||
1502 | */ |
||
1503 | public function hookReviewDeleteAfter() |
||
1507 | |||
1508 | /** |
||
1509 | * Implements hook "sku.add.before" |
||
1510 | */ |
||
1511 | public function hookSkuAddBefore() |
||
1515 | |||
1516 | /** |
||
1517 | * Implements hook "sku.add.after" |
||
1518 | */ |
||
1519 | public function hookSkuAddAfter() |
||
1523 | |||
1524 | /** |
||
1525 | * Implements hook "sku.delete.before" |
||
1526 | */ |
||
1527 | public function hookSkuDeleteBefore() |
||
1531 | |||
1532 | /** |
||
1533 | * Implements hook "sku.delete.after" |
||
1534 | */ |
||
1535 | public function hookSkuDeleteAfter() |
||
1539 | |||
1540 | /** |
||
1541 | * Implements hook "state.add.before" |
||
1542 | */ |
||
1543 | public function hookStateAddBefore() |
||
1547 | |||
1548 | /** |
||
1549 | * Implements hook "state.add.after" |
||
1550 | */ |
||
1551 | public function hookStateAddAfter() |
||
1555 | |||
1556 | /** |
||
1557 | * Implements hook "state.delete.before" |
||
1558 | */ |
||
1559 | public function hookStateDeleteBefore() |
||
1563 | |||
1564 | /** |
||
1565 | * Implements hook "state.delete.after" |
||
1566 | */ |
||
1567 | public function hookStateDeleteAfter() |
||
1571 | |||
1572 | /** |
||
1573 | * Implements hook "state.update.before" |
||
1574 | */ |
||
1575 | public function hookStateUpdateBefore() |
||
1579 | |||
1580 | /** |
||
1581 | * Implements hook "state.update.after" |
||
1582 | */ |
||
1583 | public function hookStateUpdateAfter() |
||
1587 | |||
1588 | /** |
||
1589 | * Implements hook "store.add.before" |
||
1590 | */ |
||
1591 | public function hookStoreAddBefore() |
||
1595 | |||
1596 | /** |
||
1597 | * Implements hook "store.add.after" |
||
1598 | */ |
||
1599 | public function hookStoreAddAfter() |
||
1603 | |||
1604 | /** |
||
1605 | * Implements hook "store.update.before" |
||
1606 | */ |
||
1607 | public function hookStoreUpdateBefore() |
||
1611 | |||
1612 | /** |
||
1613 | * Implements hook "store.update.after" |
||
1614 | */ |
||
1615 | public function hookStoreUpdateAfter() |
||
1619 | |||
1620 | /** |
||
1621 | * Implements hook "store.delete.before" |
||
1622 | */ |
||
1623 | public function hookStoreDeleteBefore() |
||
1627 | |||
1628 | /** |
||
1629 | * Implements hook "store.delete.after" |
||
1630 | */ |
||
1631 | public function hookStoreDeleteAfter() |
||
1635 | |||
1636 | /** |
||
1637 | * Implements hook "transaction.add.before" |
||
1638 | */ |
||
1639 | public function hookTransactionAddBefore() |
||
1643 | |||
1644 | /** |
||
1645 | * Implements hook "transaction.add.after" |
||
1646 | */ |
||
1647 | public function hookTransactionAddAfter() |
||
1651 | |||
1652 | /** |
||
1653 | * Implements hook "transaction.delete.before" |
||
1654 | */ |
||
1655 | public function hookTransactionDeleteBefore() |
||
1659 | |||
1660 | /** |
||
1661 | * Implements hook "transaction.delete.after" |
||
1662 | */ |
||
1663 | public function hookTransactionDeleteAfter() |
||
1667 | |||
1668 | /** |
||
1669 | * Implements hook "trigger.add.before" |
||
1670 | */ |
||
1671 | public function hookTriggerAddBefore() |
||
1675 | |||
1676 | /** |
||
1677 | * Implements hook "trigger.add.after" |
||
1678 | */ |
||
1679 | public function hookTriggerAddAfter() |
||
1683 | |||
1684 | /** |
||
1685 | * Implements hook "trigger.delete.before" |
||
1686 | */ |
||
1687 | public function hookTriggerDeleteBefore() |
||
1691 | |||
1692 | /** |
||
1693 | * Implements hook "trigger.delete.after" |
||
1694 | */ |
||
1695 | public function hookTriggerDeleteAfter() |
||
1699 | |||
1700 | /** |
||
1701 | * Implements hook "trigger.update.before" |
||
1702 | */ |
||
1703 | public function hookTriggerUpdateBefore() |
||
1707 | |||
1708 | /** |
||
1709 | * Implements hook "trigger.update.after" |
||
1710 | */ |
||
1711 | public function hookTriggerUpdateAfter() |
||
1715 | |||
1716 | /** |
||
1717 | * Implements hook "user.add.before" |
||
1718 | */ |
||
1719 | public function hookUserAddBefore() |
||
1723 | |||
1724 | /** |
||
1725 | * Implements hook "user.add.after" |
||
1726 | */ |
||
1727 | public function hookUserAddAfter() |
||
1731 | |||
1732 | /** |
||
1733 | * Implements hook "user.update.before" |
||
1734 | */ |
||
1735 | public function hookUserUpdateBefore() |
||
1739 | |||
1740 | /** |
||
1741 | * Implements hook "user.update.after" |
||
1742 | */ |
||
1743 | public function hookUserUpdateAfter() |
||
1747 | |||
1748 | /** |
||
1749 | * Implements hook "user.delete.before" |
||
1750 | */ |
||
1751 | public function hookUserDeleteBefore() |
||
1755 | |||
1756 | /** |
||
1757 | * Implements hook "user.delete.after" |
||
1758 | */ |
||
1759 | public function hookUserDeleteAfter() |
||
1763 | |||
1764 | /** |
||
1765 | * Implements hook "user.login.before" |
||
1766 | */ |
||
1767 | public function hookUserLoginBefore() |
||
1771 | |||
1772 | /** |
||
1773 | * Implements hook "user.login.after" |
||
1774 | */ |
||
1775 | public function hookUserLoginAfter() |
||
1779 | |||
1780 | /** |
||
1781 | * Implements hook "user.register.before" |
||
1782 | */ |
||
1783 | public function hookUserRegisterBefore() |
||
1787 | |||
1788 | /** |
||
1789 | * Implements hook "user.register.after" |
||
1790 | */ |
||
1791 | public function hookUserRegisterAfter() |
||
1795 | |||
1796 | /** |
||
1797 | * Implements hook "user.logout.before" |
||
1798 | */ |
||
1799 | public function hookUserLogoutBefore() |
||
1803 | |||
1804 | /** |
||
1805 | * Implements hook "user.logout.after" |
||
1806 | */ |
||
1807 | public function hookUserLogoutAfter() |
||
1811 | |||
1812 | /** |
||
1813 | * Implements hook "user.reset.password.before" |
||
1814 | */ |
||
1815 | public function hookUserResetPasswordBefore() |
||
1819 | |||
1820 | /** |
||
1821 | * Implements hook "user.reset.password.after" |
||
1822 | */ |
||
1823 | public function hookUserResetPasswordAfter() |
||
1827 | |||
1828 | /** |
||
1829 | * Implements hook "user.role.delete.before" |
||
1830 | */ |
||
1831 | public function hookUserRoleDeleteBefore() |
||
1835 | |||
1836 | /** |
||
1837 | * Implements hook "user.role.delete.after" |
||
1838 | */ |
||
1839 | public function hookUserRoleDeleteAfter() |
||
1843 | |||
1844 | /** |
||
1845 | * Implements hook "user.role.add.before" |
||
1846 | */ |
||
1847 | public function hookUserRoleAddBefore() |
||
1851 | |||
1852 | /** |
||
1853 | * Implements hook "user.role.add.after" |
||
1854 | */ |
||
1855 | public function hookUserRoleAddAfter() |
||
1859 | |||
1860 | /** |
||
1861 | * Implements hook "user.role.update.before" |
||
1862 | */ |
||
1863 | public function hookUserRoleUpdateBefore() |
||
1867 | |||
1868 | /** |
||
1869 | * Implements hook "user.role.update.after" |
||
1870 | */ |
||
1871 | public function hookUserRoleUpdateAfter() |
||
1875 | |||
1876 | /** |
||
1877 | * Implements hook "wishlist.add.before" |
||
1878 | */ |
||
1879 | public function hookWishlistAddBefore() |
||
1883 | |||
1884 | /** |
||
1885 | * Implements hook "wishlist.add.after" |
||
1886 | */ |
||
1887 | public function hookWishlistAddAfter() |
||
1891 | |||
1892 | /** |
||
1893 | * Implements hook "wishlist.add.product.before" |
||
1894 | */ |
||
1895 | public function hookWishlistAddProductBefore() |
||
1899 | |||
1900 | /** |
||
1901 | * Implements hook "wishlist.add.product.after" |
||
1902 | */ |
||
1903 | public function hookWishlistAddProductAfter() |
||
1907 | |||
1908 | /** |
||
1909 | * Implements hook "wishlist.delete.product.before" |
||
1910 | */ |
||
1911 | public function hookWishlistDeleteProductBefore() |
||
1915 | |||
1916 | /** |
||
1917 | * Implements hook "wishlist.delete.product.after" |
||
1918 | */ |
||
1919 | public function hookWishlistDeleteProductAfter() |
||
1923 | |||
1924 | /** |
||
1925 | * Implements hook "wishlist.delete.before" |
||
1926 | */ |
||
1927 | public function hookWishlistDeleteBefore() |
||
1931 | |||
1932 | /** |
||
1933 | * Implements hook "wishlist.delete.after" |
||
1934 | */ |
||
1935 | public function hookWishlistDeleteAfter() |
||
1939 | |||
1940 | /** |
||
1941 | * Implements hook "zone.add.before" |
||
1942 | */ |
||
1943 | public function hookZoneAddBefore() |
||
1947 | |||
1948 | /** |
||
1949 | * Implements hook "zone.add.after" |
||
1950 | */ |
||
1951 | public function hookZoneAddAfter() |
||
1955 | |||
1956 | /** |
||
1957 | * Implements hook "zone.update.before" |
||
1958 | */ |
||
1959 | public function hookZoneUpdateBefore() |
||
1963 | |||
1964 | /** |
||
1965 | * Implements hook "zone.update.after" |
||
1966 | */ |
||
1967 | public function hookZoneUpdateAfter() |
||
1971 | |||
1972 | /** |
||
1973 | * Implements hook "zone.delete.before" |
||
1974 | */ |
||
1975 | public function hookZoneDeleteBefore() |
||
1979 | |||
1980 | /** |
||
1981 | * Implements hook "zone.delete.after" |
||
1982 | */ |
||
1983 | public function hookZoneDeleteAfter() |
||
1987 | |||
1988 | } |
||
1989 |