Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7218, comment 31


Ignore:
Timestamp:
06/16/2017 08:07:52 PM (8 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7218, comment 31

    initial v1  
    44
    55Individual classes ensures that we only load the code we need to run when we hit a specific action.
     6
     7> It would also prevent us from doing lots of logic inside of a __construct() method, which makes it easier to imagine writing tests for these at some point in the future.
     8
     9For writing tests, we could pass parameters to the constructor.  I did these for a few of the activity classes because some of the functions like `bp_activity_action_delete_activity()` required a return value.