Methods

Import a feed by providing a URI

import(string $uri, string $etag, string $lastModified) : \Zend\Feed\Reader\Feed\FeedInterface

Parameters

$uri

string

The URI to the feed

$etag

string

OPTIONAL Last received ETag for this resource

$lastModified

string

OPTIONAL Last-Modified value for this resource

Exceptions

\Zend\Feed\Reader\Exception\RuntimeException

Returns

Imports a feed from a file located at $filename.

importFile(string $filename) : \Zend\Feed\Reader\Feed\FeedInterface

Import a feed from a remote URI

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.

Parameters

$uri

string

Exceptions

\Zend\Feed\Reader\Exception\RuntimeException if response is not an Http\ResponseInterface

Returns

\Zend\Feed\Reader\self

Import a feed from a string

importString(string $string) : \Zend\Feed\Reader\Feed\FeedInterface