Re: OOP, Classes, Sharing Code

From: Date: Tue, 29 Jun 2004 14:34:37 +0000
Subject: Re: OOP, Classes, Sharing Code
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-189223@lists.php.net to get a copy of this message
"Joel Kitching" <linolium@gmail.com> wrote in message news:a61df4040406281146d9ad62e@mail.gmail.com... > What generic class name would be appropriate in this case? I just > can't see how I would link the two together. Also, they would have to > use fairly generic variables names if I were to do this. Like using > the variable $items for the array of classes of either albums or > photos. I am using AbstractItemList, and then subclass PhotoList, and others form it. Abstract item list takes care of repeating items, pagination, and displaying navigation between listing pages. Concrete classes know how to display item in list (itemAsListElement()), know how many items there are in total, and getNextItem iterator. There is a bit more but this should be enough to get you started. rush -- http://www.templatetamer.com/

« previous php.general (#189223) next »