Matt,

No problem and thanks for the info! I'll keep using -1 for now since
you say that will be forward-compatible. I've opened an enhancement
ticket as ZF-5376:
http://framework.zend.com/issues/browse/ZF-5376

Thanks,
Bradley

On Mon, Dec 29, 2008 at 5:18 PM, Matthew Ratzloff
<[email protected]> wrote:
> Hi Bradley,
> Sorry about the confusion, I misread your requirement.  The -1 trick is in
> fact not an intended feature (if it were, it would be 0, to be in line with
> typical PHP API), but if it works, use it for now.  Whatever fix will just
> test for < 1, so your code should be forward-compatible.
> I highly encourage you to file an enhancement ticket so that this can be
> implemented properly.  If you do, please copy and paste this e-mail exchange
> as a comment into the ticket.
> Thanks,
> -Matt
>
> On Mon, Dec 29, 2008 at 11:56 AM, Bradley Holt <[email protected]>
> wrote:
>>
>> Matt,
>>
>> Taking a closer look at the documentation, the "All" scrolling style
>> "returns every page." I'm not trying to show every page in the
>> paginator control, I'm trying to have an infinite item count *per
>> page* (which, of course, will make it so I have only one page of
>> items). Like I said, passing a negative one (-1) to the
>> setItemCountPerPage method does the job - I just don't know if this is
>> an intended feature or something that just happens to work now but may
>> not be supported in the future.
>>
>> Thanks,
>> Bradley
>>
>> On Mon, Dec 29, 2008 at 1:00 PM, Matthew Ratzloff
>> <[email protected]> wrote:
>> >
>> > Hi Bradley,
>> > Use the scrolling style "All" instead.
>> > Please see http://framework.zend.com/manual/en/zend.paginator.usage.html
>> > for more information.
>> > -Matt
>> >
>> > On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt
>> > <[email protected]> wrote:
>> >>
>> >> I was looking for a way to have Zend_Paginator show all of the items.
>> >> For example, I have a selector that allows a user to show 25, 50, 100,
>> >> or all records. I couldn't find any documentation but by experimenting
>> >> I found that I could pass a negative one (-1) to setItemCountPerPage
>> >> and it would show all items (actually, I think any negative number
>> >> will show all items). Since I couldn't find any documentation on this
>> >> I'm wondering if this is a supported feature of Zend_Paginator that
>> >> just happens to work now but might break in the future.
>> >>
>> >> Thanks,
>> >> Bradley
>> >>
>> >> --
>> >> Bradley Holt
>> >> [email protected]
>> >
>>
>>
>>
>> --
>> Bradley Holt
>> [email protected]
>
>



-- 
Bradley Holt
[email protected]

Reply via email to