Feed utility class
Base Zend_Feed class, containing constants and the Zend_Http_Client instance accessor.
category | Zend |
---|---|
package | Zend_Feed |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
findFeeds(string $uri) : array
.. /> tags. Returns an array of the feeds referenced at $uri.
todo | Allow findFeeds() to follow one, but only one, code 302. |
---|
string
\Zend_Feed_Exception |
---|
array
getHttpClient() : \Zend_Http_Client_Abstract
\Zend_Http_Client_Abstract
getHttpMethodOverride() : boolean
boolean
import(string $uri) : \Zend_Feed_Abstract
string
\Zend_Feed_Exception |
---|
\Zend_Feed_Abstract
importArray(array $data, string $format = 'atom'
) : \Zend_Feed_Abstract
array
string
(rss|atom) the requested output format
\Zend_Feed_Abstract
importBuilder(\Zend_Feed_Builder_Interface $builder, string $format = 'atom'
) : \Zend_Feed_Abstract
\Zend_Feed_Builder_Interface
this object will be used to extract the data of the feed
string
(rss|atom) the requested output format
\Zend_Feed_Abstract
importFile(string $filename) : \Zend_Feed_Abstract
string
\Zend_Feed_Exception |
---|
\Zend_Feed_Abstract
importString(string $string) : \Zend_Feed_Abstract
string
\Zend_Feed_Exception |
---|
\Zend_Feed_Abstract
lookupNamespace($prefix) : string
Looks up a prefix (atom:, etc.) in the list of registered namespaces and returns the full namespace URI if available. Returns the prefix, unmodified, if it's not registered.
string
registerNamespace(string $prefix, string $namespaceURI) : void
Takes a prefix and a full namespace URI and adds them to the list of registered namespaces for use by Zend_Feed::lookupNamespace().
string
The namespace prefix
string
The full namespace URI
setHttpClient(\Zend_Http_Client $httpClient) : void
Sets the HTTP client object to use for retrieving the feeds.
\Zend_Http_Client
setHttpMethodOverride(boolean $override = true
) : void
Some feed implementations do not accept PUT and DELETE HTTP methods, or they can't be used because of proxies or other measures. This allows turning on using POST where PUT and DELETE would normally be used; in addition, an X-Method-Override header will be sent with a value of PUT or DELETE as appropriate.
boolean
Whether to override PUT and DELETE.
$_httpClient : \Zend_Http_Client
null
$_httpMethodOverride : boolean
false
$_namespaces : array
array('opensearch' => 'http://a9.com/-/spec/opensearchrss/1.0/', 'atom' => 'http://www.w3.org/2005/Atom', 'rss' => 'http://blogs.law.harvard.edu/tech/rss')