RE: [PHP] Newbie: Composition by Association - Pagination Class general question.

From: Date: Sun, 19 Jul 2009 12:36:07 +0000
Subject: RE: [PHP] Newbie: Composition by Association - Pagination Class general question.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-295570@lists.php.net to get a copy of this message
> Pagination is the generically applicable class - it should know > nothing about what specifically it's paginating. Ok... but I need to grab values of my DAO classes, I mean, even if we paginate images on a directory or records on a database table, the pagination should have a $limit, and a offset, a way to count how many item there are to work with... So it must be related with the DAO (or other thing) on some way, so that I can grab those values and play with them on the pagination class... Should I use a Decorator Pattern to make this relation between the pagination and the DAO ? Regards, Márcio

« previous php.general (#295570) next »