Re: Pear pager getPerPageSelectBox
| From: | Lorenzo Alberton | Date: | Tue, 05 Sep 2006 12:43:06 +0000 |
| Subject: | Re: Pear pager getPerPageSelectBox | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25069@lists.php.net to get a copy of this message | ||
Alessandro Pasotti wrote:
Does anybody know how to implement getPerPageSelectBox with the new Pager? The function has disappeared :( I see also that with the new driver there is not any reference to the Pager object anymore (in previous versions one could do $dg->renderer->pager), so even if the function getPerPageSelectBox would exists it would be impossible to call it.for the records: it turned out to be a Structure_Datagrid issue. To get the internal $pager instance, if you're using the Pager rendering driver (Structures_DataGrid_Renderer_Pager), you can write: $renderer = $dg->getRenderer(); $pager = $renderer->getContainer(); and then you can call every Pager method, including $pager->getPerPageSelectBox(). HTH Regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store