Parses feeds from external URLs
Transforms the parsed data into a tree of objects (FeedChannel and FeedItem). Supports caching of feed data (based on a lifetime), and supports RSS 0.9x, 1.0, 2.0 and ATOM 0.x formats.
Example:
Located in /core/xml/feed/FeedReader.class.php (line 68)
PHP2Go | --FeedReader
Cache options
Target encoding, to be used when parsing feeds
Last fetched feed URL
User agent to be sent when fetching feeds
Controls attributes while parsing the feed
Controls composite elements while parsing the feed
Controls elements while parsing the feed
Current feed being processed
Controls items while parsing the feed
Last HTTP response
Fetch a feed from an external URL
When caching is enabled, the method tries to load the feed from cache. If not found, or if cache is not enabled, the feed is fetched using an HTTP connection and parsed through an expat parser.
Gets the response produced from the last request
Returns a hash array containing 2 keys: headers (response headers) and body (response body). If a feed is loaded from cache, the headers represent the last time the feed was fetched from its original source.
Set cache properties
Set target encoding
Defines which encoding must be used by PHP's expat parser when parsing the contents of feeds.
Set user agent to be used when fetching feeds
CDATA handler of the feed parser
End element handler of the feed parser
Internal method used to fetch feed contents through an HTTP connection
Internal method used to parse the XML contents of a feed
Retrieves the namespace and the local name from a qualified name
Resets all control variables before fetching a new feed
Start element handler of the feed parser
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:24:11 -0300 by phpDocumentor 1.3.2