You are here: RE: [PHP] Suggestions for class design « PHP « IT news, forums, messages
RE: [PHP] Suggestions for class design

Posted by Jay Blanchard on 09/19/05 20:39

[snip]
Where I get tripped up is when I realize I'll need to at some point get
more than one customer at a time and thus I want to add a method called
'get_customers()'.
[/snip]

I know that you didn't ask for this, but the point needs discussing given
your assertion above.

Why, at any point, would you need to get more than one customer? One answer
is that all customers or a group of customers will need to be updated/edited
with the same information. Therefore you need a seperate class for multiple
customers which could then be extended by group. A group of customers is a
seperate object. Make sense?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация