Re: [fw-general] Zend_Db_Table_Rowset seek() question

2008-11-07 Thread Julien Pauli
You can use a LimitIterator to make it starts where you want ;-) Julien.P 2008/11/7 Jason Austin [EMAIL PROTECTED] Thanks for the code. After further investigation, it appears that the issue is not with Zend_Db_Table_Rowset, but with the SPL SeekableIterator class, and how PHP handles

[fw-general] Zend_Db_Table_Rowset seek() question

2008-11-06 Thread Jason Austin
I have a need to paginate some simple results, which I need the count of the entire rowset, and then rows from a particular offset. I don't really want to execute 2 queries, so I was thinking of using the seek() method of my result set to put the pointer to the required offset, however when I

Re: [fw-general] Zend_Db_Table_Rowset seek() question

2008-11-06 Thread Cameron
I built something like this as a paginator for when you're on your item view. What I did was build a simple class that implements the SPL Iterator and Countable classes, just like the internal Zend_Paginator, but just uses an array as its internal guts. Then I simply grabbed all the id fields from