Re: OO PHP - Need help
Reply #3 –
Hmm... not sure about tutorials. I would look at frameworks like Symfony or ZF. You'll learn a lot about separation of concerns, dependency injection, etc. Creating a good, clean class is an art. Although thinking of things as objects is the basis for OOP, writing good code is how you keep from just making it procedural with namespaces.
Re: OO PHP - Need help
Reply #6 –
As soon as I clicked post I realized why you are using static functions. Yuck, that's a huge issue with the event system. Sorry, looks like you need to do that for now.
Re: OO PHP - Need help
Reply #9 –
The way the hook system is now, you have to keep it the way you have it. You can't instantiate an object. So, you have to use static methods. Singleton is an anti-pattern which should be avoided.