New SlidingWindowPager Class Proposal
| From: | Lorenzo Alberton | Date: | Thu, 07 Nov 2002 19:51:14 +0000 |
| Subject: | New SlidingWindowPager Class Proposal | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10568@lists.php.net to get a copy of this message | ||
Hi everyone,
I've written a new Pager class, which is supposed to be used
like the current PEAR::Pager/Pager.php, but with some differences.
This is a "Sliding Window" Pager, as opposed to current "Jumping
Window" Pager.
It is *really* higly customizable, with a ton of useful options, such
as CSS class, prev/next text or img, separator, spaces, url variable,
filename, alternate text, # of page numbers to display, items per page,
etc. etc. *** It also works with mod_rewrite ***
I've completely rewritten my first class to match the API of the already
existent Pager, so to make the switch between the two (almost) without
code change. Actually I was considering if it was better to extend
Richard's Pager class, but I think an indipendent class is a preferable
solution, so the developement can be easier for both of us.
Some examples are provided with the package, along with the PHPDoc,
but I could add some more if needed. Just post your questions!
Ah, "+1"s are welcome...
Best regards
Lorenzo Alberton
Home page:
http://utenti.lycos.it/pearzone/
Direct download:
GZip: http://utenti.lycos.it/pearzone/SlidingWindowPager.tar.gz
Win32 zip: http://utenti.lycos.it/pearzone/SlidingWindowPager.zip
---
[Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus]
[Quipo ISP - This E-mail was scanned for viruses by Declude Virus]