Re: Questions on Pager
| From: | Bertrand Mansion | Date: | Thu, 06 Nov 2003 17:40:45 +0000 |
| Subject: | Re: Questions on Pager | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8818@lists.php.net to get a copy of this message | ||
<l.alberton@quipo.it> wrote :
> Hi Bertrand,
>
> actually Pager let you do pretty much everything you need...
> There's plenty of methods to retrieve every bit of information.
> Just have a look at the manual, I hope I have covered everything,
> if something is not clear, please let me know:
> http://pear.php.net/manual/en/package.html.pager.php
>
> About URL forging: if your current page url has other query
> string variables (different from the ones used by pager, I mean),
> then they're passed along to other pages, just try and you'll see.
>
> If you want to build your links yourself, that's fine.
> It's more work for you, but you can do it.
> Some useful methods can help you with that:
> Pager::getNextPageID();
> Pager::getOffsetByPageId()
> Pager::getPreviousPageID()
> Pager::numItems()
> Pager::numPages()
> Pager::getPageData()
>
> Uh, you also may find useful the following class var:
> $pager->range;
>
> There's a note about it in the Intro:
> http://pear.php.net/manual/en/package.html.pager.intro.php,
> look at the bottom of Example 1.
>
> If you need other explanations, please send a mail.
> I'll be back in half an hour.
Thanks Lorenzo :)
I'll investigate a bit more.
Bertrand Mansion
Mamasam