Zend\Feed\Reader\Reader
Synopsis
class Reader
{
- // constants
- const NAMESPACE_ATOM_03 = 'http://purl.org/atom/ns#';
- 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';
- 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';
- // members
- protected StorageInterface $cache;
- protected Client $httpClient;
- protected bool $httpMethodOverride;
- protected $httpConditionalGet;
- protected $extensionManager;
- protected array $extensions;
- // methods
- public static StorageInterface getCache()
- public static void setCache()
- public static void setHttpClient()
- public static Client getHttpClient()
- public static void setHttpMethodOverride()
- public static bool getHttpMethodOverride()
- public static void useHttpConditionalGet()
- public static FeedInterface import()
- public static self importRemoteFeed()
- public static FeedInterface importString()
- public static FeedInterface importFile()
- public static FeedSet findFeedLinks()
- public static string detectType()
- public static void setExtensionManager()
- public static ExtensionManagerInterface getExtensionManager()
- public static void registerExtension()
- public static bool isRegistered()
- public static array getExtensions()
- public static void reset()
- protected static void registerCoreExtensions()
- public static array arrayUnique()
Constants
Name | Value |
---|---|
NAMESPACE_ATOM_03 | 'http://purl.org/atom/ns#' |
NAMESPACE_ATOM_10 | 'http://www.w3.org/2005/Atom' |
NAMESPACE_RDF | 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' |
NAMESPACE_RSS_090 | 'http://my.netscape.com/rdf/simple/0.9/' |
NAMESPACE_RSS_10 | 'http://purl.org/rss/1.0/' |
TYPE_ANY | 'any' |
TYPE_ATOM_03 | 'atom-03' |
TYPE_ATOM_10 | 'atom-10' |
TYPE_ATOM_10_ENTRY | 'atom-10-entry' |
TYPE_ATOM_ANY | 'atom' |
TYPE_RSS_090 | 'rss-090' |
TYPE_RSS_091 | 'rss-091' |
TYPE_RSS_091_NETSCAPE | 'rss-091n' |
TYPE_RSS_091_USERLAND | 'rss-091u' |
TYPE_RSS_092 | 'rss-092' |
TYPE_RSS_093 | 'rss-093' |
TYPE_RSS_094 | 'rss-094' |
TYPE_RSS_10 | 'rss-10' |
TYPE_RSS_20 | 'rss-20' |
TYPE_RSS_ANY | 'rss' |
Members
protected
- $cache
—
Zend\Cache\Storage\StorageInterface
Cache instance - $extensionManager
- $extensions
- $httpClient
—
Zend\Feed\Reader\ZendHttp\Client
HTTP client object to use for retrieving feeds - $httpConditionalGet
- $httpMethodOverride
—
Zend\Feed\Reader\bool
Override HTTP PUT and DELETE request methods?
Methods
protected
- registerCoreExtensions() — Register core (default) extensions
public
- arrayUnique() — Utility method to apply array_unique operation to a multidimensional array.
- detectType() — Detect the feed type of the provided feed
- findFeedLinks() — Find feed links
- getCache() — Get the Feed cache
- getExtensionManager() — Get plugin manager for use with Extensions
- getExtensions() — Get a list of extensions
- getHttpClient() — Gets the HTTP client object. If none is set, a new ZendHttp\Client will be used.
- getHttpMethodOverride() — Get the HTTP override state
- import() — Import a feed by providing a URI
- importFile() — Imports a feed from a file located at $filename.
- importRemoteFeed() — Import a feed from a remote URI
- importString() — Import a feed from a string
- isRegistered() — Is a given named Extension registered?
- registerExtension() — Register an Extension by name
- reset() — Reset class state to defaults
- setCache() — Set the feed cache
- setExtensionManager() — Set plugin manager for use with Extensions
- setHttpClient() — Set the HTTP client instance
- setHttpMethodOverride() — Toggle using POST instead of PUT and DELETE HTTP methods
- useHttpConditionalGet() — Set the flag indicating whether or not to use HTTP conditional GET