"Joel Kitching" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php