PEAR::Pager question
| From: | Steffen Eckardt | Date: | Sun, 14 Nov 2004 17:53:59 +0000 |
| Subject: | PEAR::Pager question | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15490@lists.php.net to get a copy of this message | ||
Just spotted a problem when I first tried using the PEAR::Pager class. I
can assign the number of pages to be listed with "totalItems" or as an
array via "itemData". So far so good.
For instance the "itemData"-array could look like this:
$array = array("a", "b", ... , "z");
When I then build the links the class returns the pagination in the
following form:
http://SERVER/FILE?pageID=1 to
http://SERVER/FILE?pageID=26
But I need the class to work with the values assigned by the
"itemData"-array. That should look like:
http://SERVER/FILE?pageID=a to
http://SERVER/FILE?pageID=z
Is that possible? If not the possibility to assign an array would be
absolutely useless in every case, wouldn't it?