Re: PAGER, option to view all?
| From: | Louie Miranda | Date: | Wed, 29 Sep 2004 02:16:59 +0000 |
| Subject: | Re: PAGER, option to view all? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14674@lists.php.net to get a copy of this message | ||
anyone?
On Wed, 29 Sep 2004 09:15:08 +0800, Louie Miranda <lmiranda@gmail.com> wrote:
> this is my parameter for the PEAR Pager
>
> ### code ###
> $catch = $db->getAll($sql);
>
> //parameters for Pager
> $params = Array(
> 'itemData' => $catch,
> 'perPage' => 20,
> 'delta' => 5, // for 'Jumping'-style a lower
> number is better
> 'mode' => 'Sliding',
> );
>
> $pager = &new Pager($params);
> $pageData = $pager->getPageData();
> $pagerLinks = $pager->getLinks();
> $pagerCount = $pager->numItems();
> $pagerPages = $pager->numPages();
> ### code ###
>
> And for viewing using sliding mode.. ".$pagerLinks['all'].".
>
> Would it be possible to have an option to view ALL?? also, attached
> are the sliding mode? how can i have an option to view all? does pager
> have this function? or i have to create a different one?
>
> I made the decision to ask first, hoping PEAR::Pager have this option.
> If not, i might create my own.
>
> --
> Louie Miranda
> http://www.axishift.com
>
--
Louie Miranda
http://www.axishift.com