From: Eloi G. <el...@re...> - 2005-05-06 20:03:10
|
Maybe I missed something in your description, but I don't think you need a Signature class. The signatures themselves have no behavior - they're just (un)verified email addresses. The methods should stay on the Petition and the Petition Administration levels. Code reuse issues aside, you should try to keep the amount of classes used to a minimum. Web applications require a more performance-centric approach to design than desktop apps. If it can do really cool things, but only for 5 people at a time then its worthless on the 'net. There's no concrete rule on when to use PHPWS_Item. It's all a matter of your personal preferences and programming style. In my opinion, PHPWS_Item should only be used when you don't care about memory usage or execution time, and the class that you're making isn't so simple that you're not using at least 70% of PHPWS_Item's methods, and not so complex that you find yourself superclassing existing PHPWS_Item methods to get it to work the way you need it to. Other opinions may differ. -Eloi- |