2008年10月20日星期一

Re: [fw-webservices] ZEND Feed and me trying to paginate it

Just thought I'd feed back to the list incase anyone else was need to do
similar things:

I gave up on ZEND_Fend and Paginate, and in the end I used:
http://magpierss.sourceforge.net/ http://magpierss.sourceforge.net/

Which returns me an easy to use Array, which I understand. Once I'd got the
Array object it was trivial to traverse that and extract the parts I needed
and implement a simple paged navigation system.

I'm not a PHP genius and sometimes things about the ZEND toolset confuse the
hell out of me.

thanks. fc


firecall wrote:
>
>
>
> kwylez wrote:
>>
>> Try doing:
>>
>> $feed = new
>> Zend_Feed_Atom('http://wildoakrestaurant.blogspot.com/atom.xml'<http://wildoakrestaurant.blogspot.com/atom.xml%27>
>> );
>> $feedLimit = 5;
>>
>>
>> $f = new LimitIterator($feed, $feedLimit);
>>
>> $f->seek(5) should return the last item since your feed limit is 5. I
>> will
>> try and full test the example a little later when I can get to my
>> computer.
>>
>>
>>
>> --
>> Cory Wiles
>> kwylez@gmail.com
>> http://www.corywiles.com
>> http://www.400mtogo.com
>>
>>
>
>
> Argh! I spoke to soon.
>
> I cant seek:
>
> $feedLimit = $resultCount-3;
> $f = new LimitIterator($feed, $feedLimit);
> $f->seek($resultCount+3);
>
> That just returns the last three entries from the $feed.
>
> I cant seek to the 3rd entry and then limit the results to 3.
>
> Thanks. fc
>
>

--
View this message in context: http://www.nabble.com/ZEND-Feed-and-me-trying-to-paginate-it-tp20043583p20082894.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: