package Default

 Methods

Import a feed by providing a URI

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

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

\Zend\Feed\Reader\Feed\FeedInterface

Imports a feed from a file located at $filename.

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

Parameters

$filename

string

Exceptions

\Zend\Feed\Reader\Exception\RuntimeException

Returns

\Zend\Feed\Reader\Feed\FeedInterface

Import a feed from a remote URI

importRemoteFeed(string $uri, \Zend\Feed\Reader\Http\ClientInterface $client) : \Zend\Feed\Reader\ReaderImportInterface
Static

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.

fluent This method is part of a fluent interface and will return the same instance

Parameters

$uri

string

$client

\Zend\Feed\Reader\Http\ClientInterface

Exceptions

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

Returns

\Zend\Feed\Reader\ReaderImportInterface

Import a feed from a string

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

Parameters

$string

string

Exceptions

\Zend\Feed\Reader\Exception\InvalidArgumentException
\Zend\Feed\Reader\Exception\RuntimeException

Returns

\Zend\Feed\Reader\Feed\FeedInterface