PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Fetching a Feed

Use the getFeed() function to retrieve a feed from a specified URI. This function returns an instance of class specified as the second argument to getFeed, which defaults to Zend_Gdata_Feed.

<?php
$gdata 
= new Zend_Gdata();
$query = new Zend_Gdata_Query(
        
'http://www.blogger.com/feeds/blogID/posts/default');
$query->setMaxResults(10);
$feed $gdata->getFeed($query);

See later sections for special functions in each helper class for Google Data services. These functions help you to get feeds from the URI that is appropriate for the respective service.

Zend Framework