Zend Framework
1.12
|
Static Public Member Functions | |
static | setHttpClient (Zend_Http_Client $httpClient) |
Set the HTTP client instance. | |
static | getHttpClient () |
Gets the HTTP client object. | |
static | setHttpMethodOverride ($override=true) |
Toggle using POST instead of PUT and DELETE HTTP methods. | |
static | getHttpMethodOverride () |
Get the HTTP override state. | |
static | lookupNamespace ($prefix) |
Get the full version of a namespace prefix. | |
static | registerNamespace ($prefix, $namespaceURI) |
Add a namespace and prefix to the registered list. | |
static | import ($uri) |
Imports a feed located at $uri. | |
static | importString ($string) |
Imports a feed represented by $string. | |
static | importFile ($filename) |
Imports a feed from a file located at $filename. | |
static | findFeeds ($uri) |
Attempts to find feeds at $uri referenced by <link ... | |
static | importArray (array $data, $format= 'atom') |
Construct a new Zend_Feed_Abstract object from a custom array. | |
static | importBuilder (Zend_Feed_Builder_Interface $builder, $format= 'atom') |
Construct a new Zend_Feed_Abstract object from a Zend_Feed_Builder_Interface data source. | |
Static Protected Attributes | |
static | $_httpClient = null |
static | $_httpMethodOverride = false |
static | $_namespaces |
|
static |
Attempts to find feeds at $uri referenced by <link ...
/> tags. Returns an array of the feeds referenced at $uri.
string | $uri |
Zend_Feed_Exception |
|
static |
Gets the HTTP client object.
If none is set, a new Zend_Http_Client will be used.
|
static |
Get the HTTP override state.
|
static |
Imports a feed located at $uri.
string | $uri |
Zend_Feed_Exception |
|
static |
Construct a new Zend_Feed_Abstract object from a custom array.
array | $data | |
string | $format | (rss|atom) the requested output format |
|
static |
Construct a new Zend_Feed_Abstract object from a Zend_Feed_Builder_Interface data source.
Zend_Feed_Builder_Interface | $builder | this object will be used to extract the data of the feed |
string | $format | (rss|atom) the requested output format |
|
static |
Imports a feed from a file located at $filename.
string | $filename |
Zend_Feed_Exception |
|
static |
Imports a feed represented by $string.
string | $string |
Zend_Feed_Exception |
|
static |
Get the full version of a namespace prefix.
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.
|
static |
Add a namespace and prefix to the registered list.
Takes a prefix and a full namespace URI and adds them to the list of registered namespaces for use by Zend_Feed::lookupNamespace().
string | $prefix | The namespace prefix |
string | $namespaceURI | The full namespace URI |
|
static |
Set the HTTP client instance.
Sets the HTTP client object to use for retrieving the feeds.
Zend_Http_Client | $httpClient |
|
static |
Toggle using POST instead of PUT and DELETE HTTP methods.
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 | $override | Whether to override PUT and DELETE. |
|
staticprotected |
|
staticprotected |
|
staticprotected |