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