WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22704, comment 78


Ignore:
Timestamp:
09/28/2013 07:14:06 AM (5 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22704, comment 78

    initial v1  
    55> Yeah, we're really just using it as a namespace. Singletons are also something to be loathed. Suggestions welcome.
    66
    7 Both Singletons and classes with all static methods have their use-cases.  Why not consider using a bit of both.  Here's an example pattern that illustrates:
     7Both Singletons and classes with all static methods have their use-cases.  Why not consider using a bit of both?  Here's an example pattern that illustrates:
    88
    99- https://gist.github.com/mikeschinkel/6739395