Re: OOP slow -- am I an idiot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- From: "Chris de Vidal" <cdevidaljk-phpgeneral@xxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Wednesday, October 11, 2006 12:42 PM
Subject: Re:  OOP slow -- am I an idiot?


--- Johan Martin <jnm@xxxxxxxxxxxx> wrote:
You should look into getting Professional PHP5 by Lecky-Thompson,
Eide-Goodman, Nowicki and Cove from WROX.
...
The collection class in chapter 5 discusses a programming problem
just like yours.

I will look into that, thank you.

CD


Regardless of whether you find the sugested book or not, do take note that a good place for functions as the one you require, as Johan sugestests, isin a class representing collections of the individual objects. Thus, it is usually good to have a class representing individual objects (customer) and collections of the same (customers) or methods that provide information on groups or agregates of individual items.

Satyam

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux