Re: Suggestions for class design

From: Date: Mon, 19 Sep 2005 18:15:48 +0000
Subject: Re: Suggestions for class design
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-222680@lists.php.net to get a copy of this message
On Mon, 2005-09-19 at 14:00, Mikey wrote: > Jay Blanchard wrote: > > >[snip] > >Well, yes I think it does, but what I'm missing is how this new object > >interacts with the original one if it does at all. And what would I call > >it? 'Multiple_Customers'? Or.. perhaps just 'Customers'! :) > > > >Do I extend the Customer class or is it a stand alone class? > >[/snip] > > > >I think that it should be a stand alone class. The Customers class could > >instantiate the needed number of Customer objects and the methods of the > >Customers class could affect each Customer object. > > > > > > > +1 for this idea, it is a method I have used on countless projects and > works very well. > > Mikey -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#222680) next »