arrayUnique()
detectType()
findFeedLinks()
getCache()
getExtensionManager()
getExtensions()
getHttpClient()
getHttpMethodOverride()
import()
importFile()
importRemoteFeed()
importString()
isRegistered()
registerExtension()
reset()
setCache()
setExtensionManager()
setHttpClient()
setHttpMethodOverride()
useHttpConditionalGet()
registerCoreExtensions()
$cache
$extensionManager
$extensions
$httpClient
$httpConditionalGet
$httpMethodOverride
NAMESPACE_ATOM_03
NAMESPACE_ATOM_10
NAMESPACE_RDF
NAMESPACE_RSS_090
NAMESPACE_RSS_10
TYPE_ANY
TYPE_ATOM_03
TYPE_ATOM_10
TYPE_ATOM_10_ENTRY
TYPE_ATOM_ANY
TYPE_RSS_090
TYPE_RSS_091
TYPE_RSS_091_NETSCAPE
TYPE_RSS_091_USERLAND
TYPE_RSS_092
TYPE_RSS_093
TYPE_RSS_094
TYPE_RSS_10
TYPE_RSS_20
TYPE_RSS_ANY
arrayUnique(array $array) : array
array
array
detectType(\Zend\Feed\Reader\Feed\AbstractFeed | \DOMDocument | string $feed, bool $specOnly) : string
\Zend\Feed\Reader\Feed\AbstractFeed\DOMDocumentstring
bool
\Zend\Feed\Reader\Exception\InvalidArgumentException |
|
---|---|
\Zend\Feed\Reader\Exception\RuntimeException |
string
findFeedLinks($uri) : \Zend\Feed\Reader\FeedSet
getCache() : \Zend\Cache\Storage\StorageInterface
getExtensionManager() : \Zend\Feed\Reader\ExtensionManagerInterface
getExtensions() : array
array
getHttpMethodOverride() : bool
bool
import(string $uri, string $etag, string $lastModified) : \Zend\Feed\Reader\Feed\FeedInterface
string
The URI to the feed
string
OPTIONAL Last received ETag for this resource
string
OPTIONAL Last-Modified value for this resource
\Zend\Feed\Reader\Exception\RuntimeException |
---|
importFile(string $filename) : \Zend\Feed\Reader\Feed\FeedInterface
importRemoteFeed(string $uri, \Zend\Feed\Reader\Http\ClientInterface $client) : \Zend\Feed\Reader\self
Performs similarly to import(), except it uses the HTTP client passed to the method, and does not take into account cached data.
Primary purpose is to make it possible to use the Reader with alternate HTTP client implementations.
string
\Zend\Feed\Reader\Exception\RuntimeException |
if response is not an Http\ResponseInterface |
---|
\Zend\Feed\Reader\self
importString(string $string) : \Zend\Feed\Reader\Feed\FeedInterface
string
\Zend\Feed\Reader\Exception\InvalidArgumentException |
|
---|---|
\Zend\Feed\Reader\Exception\RuntimeException |
isRegistered(string $extensionName) : bool
string
bool
registerExtension(string $name) : void
string
\Zend\Feed\Reader\Exception\RuntimeException |
if unable to resolve Extension class |
---|
reset() : void
setCache(\Zend\Cache\Storage\StorageInterface $cache) : void
setExtensionManager(\Zend\Feed\Reader\ExtensionManagerInterface $extensionManager)
\Zend\Feed\Reader\ExtensionManagerInterface
setHttpClient(\Zend\Http\Client $httpClient) : void
Sets the HTTP client object to use for retrieving the feeds.
\Zend\Http\Client
setHttpMethodOverride(bool $override) : 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.
bool
Whether to override PUT and DELETE.
useHttpConditionalGet(bool $bool) : void
bool
registerCoreExtensions() : void
$extensionManager
$extensions
$httpConditionalGet
$httpMethodOverride : bool
NAMESPACE_ATOM_03
NAMESPACE_ATOM_10
NAMESPACE_RDF
NAMESPACE_RSS_090
NAMESPACE_RSS_10
TYPE_ANY
TYPE_ATOM_03
TYPE_ATOM_10
TYPE_ATOM_10_ENTRY
TYPE_ATOM_ANY
TYPE_RSS_090
TYPE_RSS_091
TYPE_RSS_091_NETSCAPE
TYPE_RSS_091_USERLAND
TYPE_RSS_092
TYPE_RSS_093
TYPE_RSS_094
TYPE_RSS_10
TYPE_RSS_20
TYPE_RSS_ANY