Zend Framework  3.0
Static Public Member Functions | List of all members
ReaderImportInterface Interface Reference

Static Public Member Functions

static import ($uri, $etag=null, $lastModified=null)
 Import a feed by providing a URI.
 
static importRemoteFeed ($uri, Http\ClientInterface $client)
 Import a feed from a remote URI.
 
static importString ($string)
 Import a feed from a string.
 
static importFile ($filename)
 Imports a feed from a file located at $filename.
 

Member Function Documentation

static import (   $uri,
  $etag = null,
  $lastModified = null 
)
static

Import a feed by providing a URI.

Parameters
string$uriThe URI to the feed
string$etagOPTIONAL Last received ETag for this resource
string$lastModifiedOPTIONAL Last-Modified value for this resource
Returns
Feed
Exceptions
Exception\RuntimeException

Implemented in Reader.

static importFile (   $filename)
static

Imports a feed from a file located at $filename.

Parameters
string$filename
Exceptions
Exception\RuntimeException
Returns
Feed

Implemented in Reader.

static importRemoteFeed (   $uri,
Http\ClientInterface  $client 
)
static

Import a feed from a remote URI.

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
string$uri
Http\ClientInterface$client
Returns
self
Exceptions
Exception\RuntimeExceptionif response is not an Http

Implemented in Reader.

static importString (   $string)
static

Import a feed from a string.

Parameters
string$string
Returns
Feed
Exceptions
Exception\InvalidArgumentException
Exception\RuntimeException

Implemented in Reader.