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 |
||
| 18 | class Main |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Module class instance |
||
| 23 | * @var \gplcart\core\Module $module |
||
| 24 | */ |
||
| 25 | protected $module; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param Module $module |
||
| 29 | */ |
||
| 30 | public function __construct(Module $module) |
||
| 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) |
||
| 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) |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Returns socket client class instance |
||
| 85 | * @return \gplcart\core\helpers\SocketClient |
||
| 86 | */ |
||
| 87 | protected function getSocketClient() |
||
| 91 | |||
| 92 | /** |
||
| 93 | * Implements hook "route.list" |
||
| 94 | * @param array $routes |
||
| 95 | */ |
||
| 96 | public function hookRouteList(&$routes) |
||
| 105 | |||
| 106 | /** |
||
| 107 | * Implements hook "module.install.before" |
||
| 108 | */ |
||
| 109 | public function hookModuleInstallBefore() |
||
| 113 | |||
| 114 | /** |
||
| 115 | * Implements hook "address.add.before" |
||
| 116 | */ |
||
| 117 | public function hookAddressAddBefore() |
||
| 121 | |||
| 122 | /** |
||
| 123 | * Implements hook "address.add.after" |
||
| 124 | */ |
||
| 125 | public function hookAddressAddAfter() |
||
| 129 | |||
| 130 | /** |
||
| 131 | * Implements hook "address.delete.before" |
||
| 132 | */ |
||
| 133 | public function hookAddressDeleteBefore() |
||
| 137 | |||
| 138 | /** |
||
| 139 | * Implements hook "address.delete.after" |
||
| 140 | */ |
||
| 141 | public function hookAddressDeleteAfter() |
||
| 145 | |||
| 146 | /** |
||
| 147 | * Implements hook "address.update.before" |
||
| 148 | */ |
||
| 149 | public function hookAddressUpdateBefore() |
||
| 153 | |||
| 154 | /** |
||
| 155 | * Implements hook "address.update.after" |
||
| 156 | */ |
||
| 157 | public function hookAddressUpdateAfter() |
||
| 161 | |||
| 162 | /** |
||
| 163 | * Implements hook "backup.add.before" |
||
| 164 | */ |
||
| 165 | public function hookBackupAddBefore() |
||
| 169 | |||
| 170 | /** |
||
| 171 | * Implements hook "backup.add.after" |
||
| 172 | */ |
||
| 173 | public function hookBackupAddAfter() |
||
| 177 | |||
| 178 | /** |
||
| 179 | * Implements hook "backup.delete.before" |
||
| 180 | */ |
||
| 181 | public function hookBackupDeleteBefore() |
||
| 185 | |||
| 186 | /** |
||
| 187 | * Implements hook "backup.delete.after" |
||
| 188 | */ |
||
| 189 | public function hookBackupDeleteAfter() |
||
| 193 | |||
| 194 | /** |
||
| 195 | * Implements hook "cart.add.product.before" |
||
| 196 | */ |
||
| 197 | public function hookCartAddProductBefore() |
||
| 201 | |||
| 202 | /** |
||
| 203 | * Implements hook "cart.add.product.after" |
||
| 204 | */ |
||
| 205 | public function hookCartAddProductAfter() |
||
| 209 | |||
| 210 | /** |
||
| 211 | * Implements hook "cart.add.before" |
||
| 212 | */ |
||
| 213 | public function hookCartAddBefore() |
||
| 217 | |||
| 218 | /** |
||
| 219 | * Implements hook "cart.add.after" |
||
| 220 | */ |
||
| 221 | public function hookCartAddAfter() |
||
| 225 | |||
| 226 | /** |
||
| 227 | * Implements hook "cart.update.before" |
||
| 228 | */ |
||
| 229 | public function hookCartUpdateBefore() |
||
| 233 | |||
| 234 | /** |
||
| 235 | * Implements hook "cart.update.after" |
||
| 236 | */ |
||
| 237 | public function hookCartUpdateAfter() |
||
| 241 | |||
| 242 | /** |
||
| 243 | * Implements hook "cart.move.wishlist.before" |
||
| 244 | */ |
||
| 245 | public function hookCartMoveWishlistBefore() |
||
| 249 | |||
| 250 | /** |
||
| 251 | * Implements hook "cart.move.wishlist.after" |
||
| 252 | */ |
||
| 253 | public function hookCartMoveWishlistAfter() |
||
| 257 | |||
| 258 | /** |
||
| 259 | * Implements hook "cart.login.before" |
||
| 260 | */ |
||
| 261 | public function hookCartLoginBefore() |
||
| 265 | |||
| 266 | /** |
||
| 267 | * Implements hook "cart.login.after" |
||
| 268 | */ |
||
| 269 | public function hookCartLoginAfter() |
||
| 273 | |||
| 274 | /** |
||
| 275 | * Implements hook "cart.delete.before" |
||
| 276 | */ |
||
| 277 | public function hookCartDeleteBefore() |
||
| 281 | |||
| 282 | /** |
||
| 283 | * Implements hook "cart.delete.after" |
||
| 284 | */ |
||
| 285 | public function hookCartDeleteAfter() |
||
| 289 | |||
| 290 | /** |
||
| 291 | * Implements hook "category.add.before" |
||
| 292 | */ |
||
| 293 | public function hookCategoryAddBefore() |
||
| 297 | |||
| 298 | /** |
||
| 299 | * Implements hook "category.add.after" |
||
| 300 | */ |
||
| 301 | public function hookCategoryAddAfter() |
||
| 305 | |||
| 306 | /** |
||
| 307 | * Implements hook "category.update.before" |
||
| 308 | */ |
||
| 309 | public function hookCategoryUpdateBefore() |
||
| 313 | |||
| 314 | /** |
||
| 315 | * Implements hook "category.update.after" |
||
| 316 | */ |
||
| 317 | public function hookCategoryUpdateAfter() |
||
| 321 | |||
| 322 | /** |
||
| 323 | * Implements hook "category.delete.before" |
||
| 324 | */ |
||
| 325 | public function hookCategoryDeleteBefore() |
||
| 329 | |||
| 330 | /** |
||
| 331 | * Implements hook "category.delete.after" |
||
| 332 | */ |
||
| 333 | public function hookCategoryDeleteAfter() |
||
| 337 | |||
| 338 | /** |
||
| 339 | * Implements hook "category.group.add.before" |
||
| 340 | */ |
||
| 341 | public function hookCategoryGroupAddBefore() |
||
| 345 | |||
| 346 | /** |
||
| 347 | * Implements hook "category.group.add.after" |
||
| 348 | */ |
||
| 349 | public function hookCategoryGroupAddAfter() |
||
| 353 | |||
| 354 | /** |
||
| 355 | * Implements hook "category.group.delete.before" |
||
| 356 | */ |
||
| 357 | public function hookCategoryGroupDeleteBefore() |
||
| 361 | |||
| 362 | /** |
||
| 363 | * Implements hook "category.group.delete.after" |
||
| 364 | */ |
||
| 365 | public function hookCategoryGroupDeleteAfter() |
||
| 369 | |||
| 370 | /** |
||
| 371 | * Implements hook "category.group.update.before" |
||
| 372 | */ |
||
| 373 | public function hookCategoryGroupUpdateBefore() |
||
| 377 | |||
| 378 | /** |
||
| 379 | * Implements hook "category.group.update.after" |
||
| 380 | */ |
||
| 381 | public function hookCategoryGroupUpdateAfter() |
||
| 385 | |||
| 386 | /** |
||
| 387 | * Implements hook "city.add.before" |
||
| 388 | */ |
||
| 389 | public function hookCityAddBefore() |
||
| 393 | |||
| 394 | /** |
||
| 395 | * Implements hook "city.add.after" |
||
| 396 | */ |
||
| 397 | public function hookCityAddAfter() |
||
| 401 | |||
| 402 | /** |
||
| 403 | * Implements hook "city.delete.before" |
||
| 404 | */ |
||
| 405 | public function hookCityDeleteBefore() |
||
| 409 | |||
| 410 | /** |
||
| 411 | * Implements hook "city.delete.after" |
||
| 412 | */ |
||
| 413 | public function hookCityDeleteAfter() |
||
| 417 | |||
| 418 | /** |
||
| 419 | * Implements hook "city.update.before" |
||
| 420 | */ |
||
| 421 | public function hookCityUpdateBefore() |
||
| 425 | |||
| 426 | /** |
||
| 427 | * Implements hook "city.update.after" |
||
| 428 | */ |
||
| 429 | public function hookCityUpdateAfter() |
||
| 433 | |||
| 434 | /** |
||
| 435 | * Implements hook "collection.add.before" |
||
| 436 | */ |
||
| 437 | public function hookCollectionAddBefore() |
||
| 441 | |||
| 442 | /** |
||
| 443 | * Implements hook "collection.add.after" |
||
| 444 | */ |
||
| 445 | public function hookCollectionAddAfter() |
||
| 449 | |||
| 450 | /** |
||
| 451 | * Implements hook "collection.delete.before" |
||
| 452 | */ |
||
| 453 | public function hookCollectionDeleteBefore() |
||
| 457 | |||
| 458 | /** |
||
| 459 | * Implements hook "collection.delete.after" |
||
| 460 | */ |
||
| 461 | public function hookCollectionDeleteAfter() |
||
| 465 | |||
| 466 | /** |
||
| 467 | * Implements hook "collection.update.before" |
||
| 468 | */ |
||
| 469 | public function hookCollectionUpdateBefore() |
||
| 473 | |||
| 474 | /** |
||
| 475 | * Implements hook "collection.update.after" |
||
| 476 | */ |
||
| 477 | public function hookCollectionUpdateAfter() |
||
| 481 | |||
| 482 | /** |
||
| 483 | * Implements hook "collection.item.add.before" |
||
| 484 | */ |
||
| 485 | public function hookCollectionItemAddBefore() |
||
| 489 | |||
| 490 | /** |
||
| 491 | * Implements hook "collection.item.add.after" |
||
| 492 | */ |
||
| 493 | public function hookCollectionItemAddAfter() |
||
| 497 | |||
| 498 | /** |
||
| 499 | * Implements hook "collection.item.delete.before" |
||
| 500 | */ |
||
| 501 | public function hookCollectionItemDeleteBefore() |
||
| 505 | |||
| 506 | /** |
||
| 507 | * Implements hook "collection.item.delete.after" |
||
| 508 | */ |
||
| 509 | public function hookCollectionItemDeleteAfter() |
||
| 513 | |||
| 514 | /** |
||
| 515 | * Implements hook "collection.item.update.before" |
||
| 516 | */ |
||
| 517 | public function hookCollectionItemUpdateBefore() |
||
| 521 | |||
| 522 | /** |
||
| 523 | * Implements hook "collection.item.update.after" |
||
| 524 | */ |
||
| 525 | public function hookCollectionItemUpdateAfter() |
||
| 529 | |||
| 530 | /** |
||
| 531 | * Implements hook "compare.add.before" |
||
| 532 | */ |
||
| 533 | public function hookCompareAddBefore() |
||
| 537 | |||
| 538 | /** |
||
| 539 | * Implements hook "compare.add.after" |
||
| 540 | */ |
||
| 541 | public function hookCompareAddAfter() |
||
| 545 | |||
| 546 | /** |
||
| 547 | * Implements hook "compare.add.product.before" |
||
| 548 | */ |
||
| 549 | public function hookCompareAddProductBefore() |
||
| 553 | |||
| 554 | /** |
||
| 555 | * Implements hook "compare.add.product.after" |
||
| 556 | */ |
||
| 557 | public function hookCompareAddProductAfter() |
||
| 561 | |||
| 562 | /** |
||
| 563 | * Implements hook "compare.delete.product.before" |
||
| 564 | */ |
||
| 565 | public function hookCompareDeleteProductBefore() |
||
| 569 | |||
| 570 | /** |
||
| 571 | * Implements hook "compare.delete.product.after" |
||
| 572 | */ |
||
| 573 | public function hookCompareDeleteProductAfter() |
||
| 577 | |||
| 578 | /** |
||
| 579 | * Implements hook "compare.delete.before" |
||
| 580 | */ |
||
| 581 | public function hookCompareDeleteBefore() |
||
| 585 | |||
| 586 | /** |
||
| 587 | * Implements hook "compare.delete.after" |
||
| 588 | */ |
||
| 589 | public function hookCompareDeleteAfter() |
||
| 593 | |||
| 594 | /** |
||
| 595 | * Implements hook "condition.met.before" |
||
| 596 | */ |
||
| 597 | public function hookConditionMetBefore() |
||
| 601 | |||
| 602 | /** |
||
| 603 | * Implements hook "condition.met.after" |
||
| 604 | */ |
||
| 605 | public function hookConditionMetAfter() |
||
| 609 | |||
| 610 | /** |
||
| 611 | * Implements hook "country.add.before" |
||
| 612 | */ |
||
| 613 | public function hookCountryAddBefore() |
||
| 617 | |||
| 618 | /** |
||
| 619 | * Implements hook "country.add.after" |
||
| 620 | */ |
||
| 621 | public function hookCountryAddAfter() |
||
| 625 | |||
| 626 | /** |
||
| 627 | * Implements hook "country.update.before" |
||
| 628 | */ |
||
| 629 | public function hookCountryUpdateBefore() |
||
| 633 | |||
| 634 | /** |
||
| 635 | * Implements hook "country.update.after" |
||
| 636 | */ |
||
| 637 | public function hookCountryUpdateAfter() |
||
| 641 | |||
| 642 | /** |
||
| 643 | * Implements hook "country.delete.before" |
||
| 644 | */ |
||
| 645 | public function hookCountryDeleteBefore() |
||
| 649 | |||
| 650 | /** |
||
| 651 | * Implements hook "country.delete.after" |
||
| 652 | */ |
||
| 653 | public function hookCountryDeleteAfter() |
||
| 657 | |||
| 658 | /** |
||
| 659 | * Implements hook "currency.update.before" |
||
| 660 | */ |
||
| 661 | public function hookCurrencyUpdateBefore() |
||
| 665 | |||
| 666 | /** |
||
| 667 | * Implements hook "currency.update.after" |
||
| 668 | */ |
||
| 669 | public function hookCurrencyUpdateAfter() |
||
| 673 | |||
| 674 | /** |
||
| 675 | * Implements hook "currency.delete.before" |
||
| 676 | */ |
||
| 677 | public function hookCurrencyDeleteBefore() |
||
| 681 | |||
| 682 | /** |
||
| 683 | * Implements hook "currency.delete.after" |
||
| 684 | */ |
||
| 685 | public function hookCurrencyDeleteAfter() |
||
| 689 | |||
| 690 | /** |
||
| 691 | * Implements hook "editor.save.before" |
||
| 692 | */ |
||
| 693 | public function hookEditorSaveBefore() |
||
| 697 | |||
| 698 | /** |
||
| 699 | * Implements hook "editor.save.after" |
||
| 700 | */ |
||
| 701 | public function hookEditorSaveAfter() |
||
| 705 | |||
| 706 | /** |
||
| 707 | * Implements hook "field.add.before" |
||
| 708 | */ |
||
| 709 | public function hookFieldAddBefore() |
||
| 713 | |||
| 714 | /** |
||
| 715 | * Implements hook "field.add.after" |
||
| 716 | */ |
||
| 717 | public function hookFieldAddAfter() |
||
| 721 | |||
| 722 | /** |
||
| 723 | * Implements hook "field.delete.before" |
||
| 724 | */ |
||
| 725 | public function hookFieldDeleteBefore() |
||
| 729 | |||
| 730 | /** |
||
| 731 | * Implements hook "field.delete.after" |
||
| 732 | */ |
||
| 733 | public function hookFieldDeleteAfter() |
||
| 737 | |||
| 738 | /** |
||
| 739 | * Implements hook "field.update.before" |
||
| 740 | */ |
||
| 741 | public function hookFieldUpdateBefore() |
||
| 745 | |||
| 746 | /** |
||
| 747 | * Implements hook "field.update.after" |
||
| 748 | */ |
||
| 749 | public function hookFieldUpdateAfter() |
||
| 753 | |||
| 754 | /** |
||
| 755 | * Implements hook "field.value.add.before" |
||
| 756 | */ |
||
| 757 | public function hookFieldValueAddBefore() |
||
| 761 | |||
| 762 | /** |
||
| 763 | * Implements hook "field.value.add.after" |
||
| 764 | */ |
||
| 765 | public function hookFieldValueAddAfter() |
||
| 769 | |||
| 770 | /** |
||
| 771 | * Implements hook "field.value.update.before" |
||
| 772 | */ |
||
| 773 | public function hookFieldValueUpdateBefore() |
||
| 777 | |||
| 778 | /** |
||
| 779 | * Implements hook "field.value.update.after" |
||
| 780 | */ |
||
| 781 | public function hookFieldValueUpdateAfter() |
||
| 785 | |||
| 786 | /** |
||
| 787 | * Implements hook "field.value.delete.before" |
||
| 788 | */ |
||
| 789 | public function hookFieldValueDeleteBefore() |
||
| 793 | |||
| 794 | /** |
||
| 795 | * Implements hook "field.value.delete.after" |
||
| 796 | */ |
||
| 797 | public function hookFieldValueDeleteAfter() |
||
| 801 | |||
| 802 | /** |
||
| 803 | * Implements hook "file.add.before" |
||
| 804 | */ |
||
| 805 | public function hookFileAddBefore() |
||
| 809 | |||
| 810 | /** |
||
| 811 | * Implements hook "file.add.after" |
||
| 812 | */ |
||
| 813 | public function hookFileAddAfter() |
||
| 817 | |||
| 818 | /** |
||
| 819 | * Implements hook "file.update.before" |
||
| 820 | */ |
||
| 821 | public function hookFileUpdateBefore() |
||
| 825 | |||
| 826 | /** |
||
| 827 | * Implements hook "file.update.after" |
||
| 828 | */ |
||
| 829 | public function hookFileUpdateAfter() |
||
| 833 | |||
| 834 | /** |
||
| 835 | * Implements hook "file.delete.before" |
||
| 836 | */ |
||
| 837 | public function hookFileDeleteBefore() |
||
| 841 | |||
| 842 | /** |
||
| 843 | * Implements hook "file.delete.after" |
||
| 844 | */ |
||
| 845 | public function hookFileDeleteAfter() |
||
| 849 | |||
| 850 | /** |
||
| 851 | * Implements hook "file.upload.before" |
||
| 852 | */ |
||
| 853 | public function hookFileUploadBefore() |
||
| 857 | |||
| 858 | /** |
||
| 859 | * Implements hook "file.upload.after" |
||
| 860 | */ |
||
| 861 | public function hookFileUploadAfter() |
||
| 865 | |||
| 866 | /** |
||
| 867 | * Implements hook "file.download.before" |
||
| 868 | */ |
||
| 869 | public function hookFileDownloadBefore() |
||
| 873 | |||
| 874 | /** |
||
| 875 | * Implements hook "file.download.after" |
||
| 876 | */ |
||
| 877 | public function hookFileDownloadAfter() |
||
| 881 | |||
| 882 | /** |
||
| 883 | * Implements hook "filter.update.before" |
||
| 884 | */ |
||
| 885 | public function hookFilterUpdateBefore() |
||
| 889 | |||
| 890 | /** |
||
| 891 | * Implements hook "filter.update.after" |
||
| 892 | */ |
||
| 893 | public function hookFilterUpdateAfter() |
||
| 897 | |||
| 898 | /** |
||
| 899 | * Implements hook "imagestyle.add.before" |
||
| 900 | */ |
||
| 901 | public function hookImagestyleAddBefore() |
||
| 905 | |||
| 906 | /** |
||
| 907 | * Implements hook "imagestyle.add.after" |
||
| 908 | */ |
||
| 909 | public function hookImagestyleAddAfter() |
||
| 913 | |||
| 914 | /** |
||
| 915 | * Implements hook "imagestyle.update.before" |
||
| 916 | */ |
||
| 917 | public function hookImagestyleUpdateBefore() |
||
| 921 | |||
| 922 | /** |
||
| 923 | * Implements hook "imagestyle.update.after" |
||
| 924 | */ |
||
| 925 | public function hookImagestyleUpdateAfter() |
||
| 929 | |||
| 930 | /** |
||
| 931 | * Implements hook "imagestyle.delete.before" |
||
| 932 | */ |
||
| 933 | public function hookImagestyleDeleteBefore() |
||
| 937 | |||
| 938 | /** |
||
| 939 | * Implements hook "imagestyle.delete.after" |
||
| 940 | */ |
||
| 941 | public function hookImagestyleDeleteAfter() |
||
| 945 | |||
| 946 | /** |
||
| 947 | * Implements hook "imagestyle.clear.cache.before" |
||
| 948 | */ |
||
| 949 | public function hookImagestyleClearCacheBefore() |
||
| 953 | |||
| 954 | /** |
||
| 955 | * Implements hook "imagestyle.clear.cache.after" |
||
| 956 | */ |
||
| 957 | public function hookImagestyleClearCacheAfter() |
||
| 961 | |||
| 962 | /** |
||
| 963 | * Implements hook "language.add.before" |
||
| 964 | */ |
||
| 965 | public function hookLanguageAddBefore() |
||
| 969 | |||
| 970 | /** |
||
| 971 | * Implements hook "language.add.after" |
||
| 972 | */ |
||
| 973 | public function hookLanguageAddAfter() |
||
| 977 | |||
| 978 | /** |
||
| 979 | * Implements hook "language.update.before" |
||
| 980 | */ |
||
| 981 | public function hookLanguageUpdateBefore() |
||
| 985 | |||
| 986 | /** |
||
| 987 | * Implements hook "language.update.after" |
||
| 988 | */ |
||
| 989 | public function hookLanguageUpdateAfter() |
||
| 993 | |||
| 994 | /** |
||
| 995 | * Implements hook "language.delete.before" |
||
| 996 | */ |
||
| 997 | public function hookLanguageDeleteBefore() |
||
| 1001 | |||
| 1002 | /** |
||
| 1003 | * Implements hook "language.delete.after" |
||
| 1004 | */ |
||
| 1005 | public function hookLanguageDeleteAfter() |
||
| 1009 | |||
| 1010 | /** |
||
| 1011 | * Implements hook "mail.send.before" |
||
| 1012 | */ |
||
| 1013 | public function hookMailSendBefore() |
||
| 1017 | |||
| 1018 | /** |
||
| 1019 | * Implements hook "mail.send.after" |
||
| 1020 | */ |
||
| 1021 | public function hookMailSendAfter() |
||
| 1025 | |||
| 1026 | /** |
||
| 1027 | * Implements hook "module.enable.before" |
||
| 1028 | */ |
||
| 1029 | public function hookModuleEnableBefore() |
||
| 1033 | |||
| 1034 | /** |
||
| 1035 | * Implements hook "module.enable.after" |
||
| 1036 | */ |
||
| 1037 | public function hookModuleEnableAfter() |
||
| 1041 | |||
| 1042 | /** |
||
| 1043 | * Implements hook "module.disable.before" |
||
| 1044 | */ |
||
| 1045 | public function hookModuleDisableBefore() |
||
| 1049 | |||
| 1050 | /** |
||
| 1051 | * Implements hook "module.disable.after" |
||
| 1052 | */ |
||
| 1053 | public function hookModuleDisableAfter() |
||
| 1057 | |||
| 1058 | /** |
||
| 1059 | * Implements hook "module.install.after" |
||
| 1060 | */ |
||
| 1061 | public function hookModuleInstallAfter() |
||
| 1065 | |||
| 1066 | /** |
||
| 1067 | * Implements hook "module.uninstall.before" |
||
| 1068 | */ |
||
| 1069 | public function hookModuleUninstallBefore() |
||
| 1073 | |||
| 1074 | /** |
||
| 1075 | * Implements hook "module.uninstall.after" |
||
| 1076 | */ |
||
| 1077 | public function hookModuleUninstallAfter() |
||
| 1081 | |||
| 1082 | /** |
||
| 1083 | * Implements hook "order.update.before" |
||
| 1084 | */ |
||
| 1085 | public function hookOrderUpdateBefore() |
||
| 1089 | |||
| 1090 | /** |
||
| 1091 | * Implements hook "order.update.after" |
||
| 1092 | */ |
||
| 1093 | public function hookOrderUpdateAfter() |
||
| 1097 | |||
| 1098 | /** |
||
| 1099 | * Implements hook "order.delete.before" |
||
| 1100 | */ |
||
| 1101 | public function hookOrderDeleteBefore() |
||
| 1105 | |||
| 1106 | /** |
||
| 1107 | * Implements hook "order.delete.after" |
||
| 1108 | */ |
||
| 1109 | public function hookOrderDeleteAfter() |
||
| 1113 | |||
| 1114 | /** |
||
| 1115 | * Implements hook "order.submit.before" |
||
| 1116 | */ |
||
| 1117 | public function hookOrderSubmitBefore() |
||
| 1121 | |||
| 1122 | /** |
||
| 1123 | * Implements hook "order.submit.after" |
||
| 1124 | */ |
||
| 1125 | public function hookOrderSubmitAfter() |
||
| 1129 | |||
| 1130 | /** |
||
| 1131 | * Implements hook "order.add.before" |
||
| 1132 | */ |
||
| 1133 | public function hookOrderAddBefore() |
||
| 1137 | |||
| 1138 | /** |
||
| 1139 | * Implements hook "order.add.after" |
||
| 1140 | */ |
||
| 1141 | public function hookOrderAddAfter() |
||
| 1145 | |||
| 1146 | /** |
||
| 1147 | * Implements hook "page.add.before" |
||
| 1148 | */ |
||
| 1149 | public function hookPageAddBefore() |
||
| 1153 | |||
| 1154 | /** |
||
| 1155 | * Implements hook "page.add.after" |
||
| 1156 | */ |
||
| 1157 | public function hookPageAddAfter() |
||
| 1161 | |||
| 1162 | /** |
||
| 1163 | * Implements hook "page.update.before" |
||
| 1164 | */ |
||
| 1165 | public function hookPageUpdateBefore() |
||
| 1169 | |||
| 1170 | /** |
||
| 1171 | * Implements hook "page.update.after" |
||
| 1172 | */ |
||
| 1173 | public function hookPageUpdateAfter() |
||
| 1177 | |||
| 1178 | /** |
||
| 1179 | * Implements hook "page.delete.before" |
||
| 1180 | */ |
||
| 1181 | public function hookPageDeleteBefore() |
||
| 1185 | |||
| 1186 | /** |
||
| 1187 | * Implements hook "page.delete.after" |
||
| 1188 | */ |
||
| 1189 | public function hookPageDeleteAfter() |
||
| 1193 | |||
| 1194 | /** |
||
| 1195 | * Implements hook "price.rule.add.before" |
||
| 1196 | */ |
||
| 1197 | public function hookPriceRuleAddBefore() |
||
| 1201 | |||
| 1202 | /** |
||
| 1203 | * Implements hook "price.rule.add.after" |
||
| 1204 | */ |
||
| 1205 | public function hookPriceRuleAddAfter() |
||
| 1209 | |||
| 1210 | /** |
||
| 1211 | * Implements hook "price.rule.update.before" |
||
| 1212 | */ |
||
| 1213 | public function hookPriceRuleUpdateBefore() |
||
| 1217 | |||
| 1218 | /** |
||
| 1219 | * Implements hook "price.rule.update.after" |
||
| 1220 | */ |
||
| 1221 | public function hookPriceRuleUpdateAfter() |
||
| 1225 | |||
| 1226 | /** |
||
| 1227 | * Implements hook "price.rule.delete.before" |
||
| 1228 | */ |
||
| 1229 | public function hookPriceRuleDeleteBefore() |
||
| 1233 | |||
| 1234 | /** |
||
| 1235 | * Implements hook "price.rule.delete.after" |
||
| 1236 | */ |
||
| 1237 | public function hookPriceRuleDeleteAfter() |
||
| 1241 | |||
| 1242 | /** |
||
| 1243 | * Implements hook "product.add.before" |
||
| 1244 | */ |
||
| 1245 | public function hookProductAddBefore() |
||
| 1249 | |||
| 1250 | /** |
||
| 1251 | * Implements hook "product.add.after" |
||
| 1252 | */ |
||
| 1253 | public function hookProductAddAfter() |
||
| 1257 | |||
| 1258 | /** |
||
| 1259 | * Implements hook "product.update.before" |
||
| 1260 | */ |
||
| 1261 | public function hookProductUpdateBefore() |
||
| 1265 | |||
| 1266 | /** |
||
| 1267 | * Implements hook "product.update.after" |
||
| 1268 | */ |
||
| 1269 | public function hookProductUpdateAfter() |
||
| 1273 | |||
| 1274 | /** |
||
| 1275 | * Implements hook "product.delete.before" |
||
| 1276 | */ |
||
| 1277 | public function hookProductDeleteBefore() |
||
| 1281 | |||
| 1282 | /** |
||
| 1283 | * Implements hook "product.delete.after" |
||
| 1284 | */ |
||
| 1285 | public function hookProductDeleteAfter() |
||
| 1289 | |||
| 1290 | /** |
||
| 1291 | * Implements hook "product.class.add.before" |
||
| 1292 | */ |
||
| 1293 | public function hookProductClassAddBefore() |
||
| 1297 | |||
| 1298 | /** |
||
| 1299 | * Implements hook "product.class.add.after" |
||
| 1300 | */ |
||
| 1301 | public function hookProductClassAddAfter() |
||
| 1305 | |||
| 1306 | /** |
||
| 1307 | * Implements hook "product.class.delete.before" |
||
| 1308 | */ |
||
| 1309 | public function hookProductClassDeleteBefore() |
||
| 1313 | |||
| 1314 | /** |
||
| 1315 | * Implements hook "product.class.delete.after" |
||
| 1316 | */ |
||
| 1317 | public function hookProductClassDeleteAfter() |
||
| 1321 | |||
| 1322 | /** |
||
| 1323 | * Implements hook "product.class.update.before" |
||
| 1324 | */ |
||
| 1325 | public function hookProductClassUpdateBefore() |
||
| 1329 | |||
| 1330 | /** |
||
| 1331 | * Implements hook "product.class.update.after" |
||
| 1332 | */ |
||
| 1333 | public function hookProductClassUpdateAfter() |
||
| 1337 | |||
| 1338 | /** |
||
| 1339 | * Implements hook "product.class.add.field.before" |
||
| 1340 | */ |
||
| 1341 | public function hookProductClassAddFieldBefore() |
||
| 1345 | |||
| 1346 | /** |
||
| 1347 | * Implements hook "product.class.add.field.after" |
||
| 1348 | */ |
||
| 1349 | public function hookProductClassAddFieldAfter() |
||
| 1353 | |||
| 1354 | /** |
||
| 1355 | * Implements hook "product.class.delete.field.before" |
||
| 1356 | */ |
||
| 1357 | public function hookProductClassDeleteFieldBefore() |
||
| 1361 | |||
| 1362 | /** |
||
| 1363 | * Implements hook "product.class.delete.field.after" |
||
| 1364 | */ |
||
| 1365 | public function hookProductClassDeleteFieldAfter() |
||
| 1369 | |||
| 1370 | /** |
||
| 1371 | * Implements hook "product.field.add.before" |
||
| 1372 | */ |
||
| 1373 | public function hookProductFieldAddBefore() |
||
| 1377 | |||
| 1378 | /** |
||
| 1379 | * Implements hook "product.field.add.after" |
||
| 1380 | */ |
||
| 1381 | public function hookProductFieldAddAfter() |
||
| 1385 | |||
| 1386 | /** |
||
| 1387 | * Implements hook "product.field.delete.before" |
||
| 1388 | */ |
||
| 1389 | public function hookProductFieldDeleteBefore() |
||
| 1393 | |||
| 1394 | /** |
||
| 1395 | * Implements hook "product.field.delete.after" |
||
| 1396 | */ |
||
| 1397 | public function hookProductFieldDeleteAfter() |
||
| 1401 | |||
| 1402 | /** |
||
| 1403 | * Implements hook "rating.set.before" |
||
| 1404 | */ |
||
| 1405 | public function hookRatingSetBefore() |
||
| 1409 | |||
| 1410 | /** |
||
| 1411 | * Implements hook "rating.set.after" |
||
| 1412 | */ |
||
| 1413 | public function hookRatingSetAfter() |
||
| 1417 | |||
| 1418 | /** |
||
| 1419 | * Implements hook "rating.add.user.before" |
||
| 1420 | */ |
||
| 1421 | public function hookRatingAddUserBefore() |
||
| 1425 | |||
| 1426 | /** |
||
| 1427 | * Implements hook "rating.add.user.after" |
||
| 1428 | */ |
||
| 1429 | public function hookRatingAddUserAfter() |
||
| 1433 | |||
| 1434 | /** |
||
| 1435 | * Implements hook "review.add.before" |
||
| 1436 | */ |
||
| 1437 | public function hookReviewAddBefore() |
||
| 1441 | |||
| 1442 | /** |
||
| 1443 | * Implements hook "review.add.after" |
||
| 1444 | */ |
||
| 1445 | public function hookReviewAddAfter() |
||
| 1449 | |||
| 1450 | /** |
||
| 1451 | * Implements hook "review.get.before" |
||
| 1452 | */ |
||
| 1453 | public function hookReviewGetBefore() |
||
| 1457 | |||
| 1458 | /** |
||
| 1459 | * Implements hook "review.get.after" |
||
| 1460 | */ |
||
| 1461 | public function hookReviewGetAfter() |
||
| 1465 | |||
| 1466 | /** |
||
| 1467 | * Implements hook "review.update.before" |
||
| 1468 | */ |
||
| 1469 | public function hookReviewUpdateBefore() |
||
| 1473 | |||
| 1474 | /** |
||
| 1475 | * Implements hook "review.update.after" |
||
| 1476 | */ |
||
| 1477 | public function hookReviewUpdateAfter() |
||
| 1481 | |||
| 1482 | /** |
||
| 1483 | * Implements hook "review.delete.before" |
||
| 1484 | */ |
||
| 1485 | public function hookReviewDeleteBefore() |
||
| 1489 | |||
| 1490 | /** |
||
| 1491 | * Implements hook "review.delete.after" |
||
| 1492 | */ |
||
| 1493 | public function hookReviewDeleteAfter() |
||
| 1497 | |||
| 1498 | /** |
||
| 1499 | * Implements hook "sku.add.before" |
||
| 1500 | */ |
||
| 1501 | public function hookSkuAddBefore() |
||
| 1505 | |||
| 1506 | /** |
||
| 1507 | * Implements hook "sku.add.after" |
||
| 1508 | */ |
||
| 1509 | public function hookSkuAddAfter() |
||
| 1513 | |||
| 1514 | /** |
||
| 1515 | * Implements hook "sku.delete.before" |
||
| 1516 | */ |
||
| 1517 | public function hookSkuDeleteBefore() |
||
| 1521 | |||
| 1522 | /** |
||
| 1523 | * Implements hook "sku.delete.after" |
||
| 1524 | */ |
||
| 1525 | public function hookSkuDeleteAfter() |
||
| 1529 | |||
| 1530 | /** |
||
| 1531 | * Implements hook "state.add.before" |
||
| 1532 | */ |
||
| 1533 | public function hookStateAddBefore() |
||
| 1537 | |||
| 1538 | /** |
||
| 1539 | * Implements hook "state.add.after" |
||
| 1540 | */ |
||
| 1541 | public function hookStateAddAfter() |
||
| 1545 | |||
| 1546 | /** |
||
| 1547 | * Implements hook "state.delete.before" |
||
| 1548 | */ |
||
| 1549 | public function hookStateDeleteBefore() |
||
| 1553 | |||
| 1554 | /** |
||
| 1555 | * Implements hook "state.delete.after" |
||
| 1556 | */ |
||
| 1557 | public function hookStateDeleteAfter() |
||
| 1561 | |||
| 1562 | /** |
||
| 1563 | * Implements hook "state.update.before" |
||
| 1564 | */ |
||
| 1565 | public function hookStateUpdateBefore() |
||
| 1569 | |||
| 1570 | /** |
||
| 1571 | * Implements hook "state.update.after" |
||
| 1572 | */ |
||
| 1573 | public function hookStateUpdateAfter() |
||
| 1577 | |||
| 1578 | /** |
||
| 1579 | * Implements hook "store.add.before" |
||
| 1580 | */ |
||
| 1581 | public function hookStoreAddBefore() |
||
| 1585 | |||
| 1586 | /** |
||
| 1587 | * Implements hook "store.add.after" |
||
| 1588 | */ |
||
| 1589 | public function hookStoreAddAfter() |
||
| 1593 | |||
| 1594 | /** |
||
| 1595 | * Implements hook "store.update.before" |
||
| 1596 | */ |
||
| 1597 | public function hookStoreUpdateBefore() |
||
| 1601 | |||
| 1602 | /** |
||
| 1603 | * Implements hook "store.update.after" |
||
| 1604 | */ |
||
| 1605 | public function hookStoreUpdateAfter() |
||
| 1609 | |||
| 1610 | /** |
||
| 1611 | * Implements hook "store.delete.before" |
||
| 1612 | */ |
||
| 1613 | public function hookStoreDeleteBefore() |
||
| 1617 | |||
| 1618 | /** |
||
| 1619 | * Implements hook "store.delete.after" |
||
| 1620 | */ |
||
| 1621 | public function hookStoreDeleteAfter() |
||
| 1625 | |||
| 1626 | /** |
||
| 1627 | * Implements hook "transaction.add.before" |
||
| 1628 | */ |
||
| 1629 | public function hookTransactionAddBefore() |
||
| 1633 | |||
| 1634 | /** |
||
| 1635 | * Implements hook "transaction.add.after" |
||
| 1636 | */ |
||
| 1637 | public function hookTransactionAddAfter() |
||
| 1641 | |||
| 1642 | /** |
||
| 1643 | * Implements hook "transaction.delete.before" |
||
| 1644 | */ |
||
| 1645 | public function hookTransactionDeleteBefore() |
||
| 1649 | |||
| 1650 | /** |
||
| 1651 | * Implements hook "transaction.delete.after" |
||
| 1652 | */ |
||
| 1653 | public function hookTransactionDeleteAfter() |
||
| 1657 | |||
| 1658 | /** |
||
| 1659 | * Implements hook "trigger.add.before" |
||
| 1660 | */ |
||
| 1661 | public function hookTriggerAddBefore() |
||
| 1665 | |||
| 1666 | /** |
||
| 1667 | * Implements hook "trigger.add.after" |
||
| 1668 | */ |
||
| 1669 | public function hookTriggerAddAfter() |
||
| 1673 | |||
| 1674 | /** |
||
| 1675 | * Implements hook "trigger.delete.before" |
||
| 1676 | */ |
||
| 1677 | public function hookTriggerDeleteBefore() |
||
| 1681 | |||
| 1682 | /** |
||
| 1683 | * Implements hook "trigger.delete.after" |
||
| 1684 | */ |
||
| 1685 | public function hookTriggerDeleteAfter() |
||
| 1689 | |||
| 1690 | /** |
||
| 1691 | * Implements hook "trigger.update.before" |
||
| 1692 | */ |
||
| 1693 | public function hookTriggerUpdateBefore() |
||
| 1697 | |||
| 1698 | /** |
||
| 1699 | * Implements hook "trigger.update.after" |
||
| 1700 | */ |
||
| 1701 | public function hookTriggerUpdateAfter() |
||
| 1705 | |||
| 1706 | /** |
||
| 1707 | * Implements hook "user.add.before" |
||
| 1708 | */ |
||
| 1709 | public function hookUserAddBefore() |
||
| 1713 | |||
| 1714 | /** |
||
| 1715 | * Implements hook "user.add.after" |
||
| 1716 | */ |
||
| 1717 | public function hookUserAddAfter() |
||
| 1721 | |||
| 1722 | /** |
||
| 1723 | * Implements hook "user.update.before" |
||
| 1724 | */ |
||
| 1725 | public function hookUserUpdateBefore() |
||
| 1729 | |||
| 1730 | /** |
||
| 1731 | * Implements hook "user.update.after" |
||
| 1732 | */ |
||
| 1733 | public function hookUserUpdateAfter() |
||
| 1737 | |||
| 1738 | /** |
||
| 1739 | * Implements hook "user.delete.before" |
||
| 1740 | */ |
||
| 1741 | public function hookUserDeleteBefore() |
||
| 1745 | |||
| 1746 | /** |
||
| 1747 | * Implements hook "user.delete.after" |
||
| 1748 | */ |
||
| 1749 | public function hookUserDeleteAfter() |
||
| 1753 | |||
| 1754 | /** |
||
| 1755 | * Implements hook "user.login.before" |
||
| 1756 | */ |
||
| 1757 | public function hookUserLoginBefore() |
||
| 1761 | |||
| 1762 | /** |
||
| 1763 | * Implements hook "user.login.after" |
||
| 1764 | */ |
||
| 1765 | public function hookUserLoginAfter() |
||
| 1769 | |||
| 1770 | /** |
||
| 1771 | * Implements hook "user.register.before" |
||
| 1772 | */ |
||
| 1773 | public function hookUserRegisterBefore() |
||
| 1777 | |||
| 1778 | /** |
||
| 1779 | * Implements hook "user.register.after" |
||
| 1780 | */ |
||
| 1781 | public function hookUserRegisterAfter() |
||
| 1785 | |||
| 1786 | /** |
||
| 1787 | * Implements hook "user.logout.before" |
||
| 1788 | */ |
||
| 1789 | public function hookUserLogoutBefore() |
||
| 1793 | |||
| 1794 | /** |
||
| 1795 | * Implements hook "user.logout.after" |
||
| 1796 | */ |
||
| 1797 | public function hookUserLogoutAfter() |
||
| 1801 | |||
| 1802 | /** |
||
| 1803 | * Implements hook "user.reset.password.before" |
||
| 1804 | */ |
||
| 1805 | public function hookUserResetPasswordBefore() |
||
| 1809 | |||
| 1810 | /** |
||
| 1811 | * Implements hook "user.reset.password.after" |
||
| 1812 | */ |
||
| 1813 | public function hookUserResetPasswordAfter() |
||
| 1817 | |||
| 1818 | /** |
||
| 1819 | * Implements hook "user.role.delete.before" |
||
| 1820 | */ |
||
| 1821 | public function hookUserRoleDeleteBefore() |
||
| 1825 | |||
| 1826 | /** |
||
| 1827 | * Implements hook "user.role.delete.after" |
||
| 1828 | */ |
||
| 1829 | public function hookUserRoleDeleteAfter() |
||
| 1833 | |||
| 1834 | /** |
||
| 1835 | * Implements hook "user.role.add.before" |
||
| 1836 | */ |
||
| 1837 | public function hookUserRoleAddBefore() |
||
| 1841 | |||
| 1842 | /** |
||
| 1843 | * Implements hook "user.role.add.after" |
||
| 1844 | */ |
||
| 1845 | public function hookUserRoleAddAfter() |
||
| 1849 | |||
| 1850 | /** |
||
| 1851 | * Implements hook "user.role.update.before" |
||
| 1852 | */ |
||
| 1853 | public function hookUserRoleUpdateBefore() |
||
| 1857 | |||
| 1858 | /** |
||
| 1859 | * Implements hook "user.role.update.after" |
||
| 1860 | */ |
||
| 1861 | public function hookUserRoleUpdateAfter() |
||
| 1865 | |||
| 1866 | /** |
||
| 1867 | * Implements hook "wishlist.add.before" |
||
| 1868 | */ |
||
| 1869 | public function hookWishlistAddBefore() |
||
| 1873 | |||
| 1874 | /** |
||
| 1875 | * Implements hook "wishlist.add.after" |
||
| 1876 | */ |
||
| 1877 | public function hookWishlistAddAfter() |
||
| 1881 | |||
| 1882 | /** |
||
| 1883 | * Implements hook "wishlist.add.product.before" |
||
| 1884 | */ |
||
| 1885 | public function hookWishlistAddProductBefore() |
||
| 1889 | |||
| 1890 | /** |
||
| 1891 | * Implements hook "wishlist.add.product.after" |
||
| 1892 | */ |
||
| 1893 | public function hookWishlistAddProductAfter() |
||
| 1897 | |||
| 1898 | /** |
||
| 1899 | * Implements hook "wishlist.delete.product.before" |
||
| 1900 | */ |
||
| 1901 | public function hookWishlistDeleteProductBefore() |
||
| 1905 | |||
| 1906 | /** |
||
| 1907 | * Implements hook "wishlist.delete.product.after" |
||
| 1908 | */ |
||
| 1909 | public function hookWishlistDeleteProductAfter() |
||
| 1913 | |||
| 1914 | /** |
||
| 1915 | * Implements hook "wishlist.delete.before" |
||
| 1916 | */ |
||
| 1917 | public function hookWishlistDeleteBefore() |
||
| 1921 | |||
| 1922 | /** |
||
| 1923 | * Implements hook "wishlist.delete.after" |
||
| 1924 | */ |
||
| 1925 | public function hookWishlistDeleteAfter() |
||
| 1929 | |||
| 1930 | /** |
||
| 1931 | * Implements hook "zone.add.before" |
||
| 1932 | */ |
||
| 1933 | public function hookZoneAddBefore() |
||
| 1937 | |||
| 1938 | /** |
||
| 1939 | * Implements hook "zone.add.after" |
||
| 1940 | */ |
||
| 1941 | public function hookZoneAddAfter() |
||
| 1945 | |||
| 1946 | /** |
||
| 1947 | * Implements hook "zone.update.before" |
||
| 1948 | */ |
||
| 1949 | public function hookZoneUpdateBefore() |
||
| 1953 | |||
| 1954 | /** |
||
| 1955 | * Implements hook "zone.update.after" |
||
| 1956 | */ |
||
| 1957 | public function hookZoneUpdateAfter() |
||
| 1961 | |||
| 1962 | /** |
||
| 1963 | * Implements hook "zone.delete.before" |
||
| 1964 | */ |
||
| 1965 | public function hookZoneDeleteBefore() |
||
| 1969 | |||
| 1970 | /** |
||
| 1971 | * Implements hook "zone.delete.after" |
||
| 1972 | */ |
||
| 1973 | public function hookZoneDeleteAfter() |
||
| 1977 | |||
| 1978 | } |
||
| 1979 |