Zend Framework
1.12
|
Static Public Member Functions | |
static | getCache () |
Get the Feed cache. | |
static | setCache (Zend_Cache_Core $cache) |
Set the feed cache. | |
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 | useHttpConditionalGet ($bool=true) |
Set the flag indicating whether or not to use HTTP conditional GET. | |
static | import ($uri, $etag=null, $lastModified=null) |
Import a feed by providing a URL. | |
static | importFeed (Zend_Feed_Abstract $feed) |
Import a feed by providing a Zend_Feed_Abstract object. | |
static | importString ($string) |
Import a feed from a string. | |
static | importFile ($filename) |
Imports a feed from a file located at $filename. | |
static | findFeedLinks ($uri) |
static | detectType ($feed, $specOnly=false) |
Detect the feed type of the provided feed. | |
static | setPluginLoader (Zend_Loader_PluginLoader_Interface $loader) |
Set plugin loader for use with Extensions. | |
static | getPluginLoader () |
Get plugin loader for use with Extensions. | |
static | addPrefixPath ($prefix, $path) |
Add prefix path for loading Extensions. | |
static | addPrefixPaths (array $spec) |
Add multiple Extension prefix paths at once. | |
static | registerExtension ($name) |
Register an Extension by name. | |
static | isRegistered ($extensionName) |
Is a given named Extension registered? | |
static | getExtensions () |
Get a list of extensions. | |
static | reset () |
Reset class state to defaults. | |
static | arrayUnique (array $array) |
Utility method to apply array_unique operation to a multidimensional array. | |
Public Attributes | |
const | NAMESPACE_ATOM_03 = 'http://purl.org/atom/ns#' |
Namespace constants. | |
const | NAMESPACE_ATOM_10 = 'http://www.w3.org/2005/Atom' |
const | NAMESPACE_RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' |
const | NAMESPACE_RSS_090 = 'http://my.netscape.com/rdf/simple/0.9/' |
const | NAMESPACE_RSS_10 = 'http://purl.org/rss/1.0/' |
const | TYPE_ANY = 'any' |
Feed type constants. | |
const | TYPE_ATOM_03 = 'atom-03' |
const | TYPE_ATOM_10 = 'atom-10' |
const | TYPE_ATOM_10_ENTRY = 'atom-10-entry' |
const | TYPE_ATOM_ANY = 'atom' |
const | TYPE_RSS_090 = 'rss-090' |
const | TYPE_RSS_091 = 'rss-091' |
const | TYPE_RSS_091_NETSCAPE = 'rss-091n' |
const | TYPE_RSS_091_USERLAND = 'rss-091u' |
const | TYPE_RSS_092 = 'rss-092' |
const | TYPE_RSS_093 = 'rss-093' |
const | TYPE_RSS_094 = 'rss-094' |
const | TYPE_RSS_10 = 'rss-10' |
const | TYPE_RSS_20 = 'rss-20' |
const | TYPE_RSS_ANY = 'rss' |
Static Protected Member Functions | |
static | _registerCoreExtensions () |
Register core (default) extensions. | |
Static Protected Attributes | |
static | $_cache = null |
static | $_httpClient = null |
static | $_httpMethodOverride = false |
static | $_httpConditionalGet = false |
static | $_pluginLoader = null |
static | $_prefixPaths = array() |
static | $_extensions |
|
staticprotected |
Register core (default) extensions.
|
static |
Add prefix path for loading Extensions.
string | $prefix | |
string | $path |
|
static |
Add multiple Extension prefix paths at once.
array | $spec |
|
static |
Utility method to apply array_unique operation to a multidimensional array.
array |
|
static |
Detect the feed type of the provided feed.
Zend_Feed_Abstract | DOMDocument | string | $feed | |
bool | $specOnly |
Zend_Feed_Exception |
|
static |
|
static |
Get the Feed cache.
|
static |
Get a list of extensions.
|
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 |
Get plugin loader for use with Extensions.
|
static |
Import a feed by providing a URL.
string | $url | The URL to the feed |
string | $etag | OPTIONAL Last received ETag for this resource |
string | $lastModified | OPTIONAL Last-Modified value for this resource |
|
static |
Import a feed by providing a Zend_Feed_Abstract object.
Zend_Feed_Abstract | $feed | A fully instantiated Zend_Feed object |
|
static |
Imports a feed from a file located at $filename.
string | $filename |
Zend_Feed_Exception |
|
static |
|
static |
Is a given named Extension registered?
string | $extensionName |
|
static |
Register an Extension by name.
string | $name |
Zend_Feed_Exception | if unable to resolve Extension class |
|
static |
Reset class state to defaults.
|
static |
|
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. |
|
static |
Set plugin loader for use with Extensions.
Zend_Loader_PluginLoader_Interface | $loader |
|
static |
Set the flag indicating whether or not to use HTTP conditional GET.
bool | $bool |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
const NAMESPACE_ATOM_03 = 'http://purl.org/atom/ns#' |
Namespace constants.
const NAMESPACE_ATOM_10 = 'http://www.w3.org/2005/Atom' |
const NAMESPACE_RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' |
const NAMESPACE_RSS_090 = 'http://my.netscape.com/rdf/simple/0.9/' |
const NAMESPACE_RSS_10 = 'http://purl.org/rss/1.0/' |
const TYPE_ANY = 'any' |
Feed type constants.
const TYPE_ATOM_03 = 'atom-03' |
const TYPE_ATOM_10 = 'atom-10' |
const TYPE_ATOM_10_ENTRY = 'atom-10-entry' |
const TYPE_ATOM_ANY = 'atom' |
const TYPE_RSS_090 = 'rss-090' |
const TYPE_RSS_091 = 'rss-091' |
const TYPE_RSS_091_NETSCAPE = 'rss-091n' |
const TYPE_RSS_091_USERLAND = 'rss-091u' |
const TYPE_RSS_092 = 'rss-092' |
const TYPE_RSS_093 = 'rss-093' |
const TYPE_RSS_094 = 'rss-094' |
const TYPE_RSS_10 = 'rss-10' |
const TYPE_RSS_20 = 'rss-20' |
const TYPE_RSS_ANY = 'rss' |