1516. Class

1516.1. Zend\Feed\Reader\Reader

1516.1.1. Methods

1516.1.1.1. getCache

getCache()

Get the Feed cache

Return type:CacheStorage

1516.1.1.2. setCache

setCache()

Set the feed cache

Parameters:CacheStorage
Return type:void

1516.1.1.3. setHttpClient

setHttpClient()

Set the HTTP client instance

Sets the HTTP client object to use for retrieving the feeds.

Parameters:ZendHttpClient
Return type:void

1516.1.1.4. getHttpClient

getHttpClient()

Gets the HTTP client object. If none is set, a new ZendHttpClient will be used.

Return type:ZendHttpClient

1516.1.1.5. setHttpMethodOverride

setHttpMethodOverride()

Toggle using POST instead of PUT and DELETE HTTP methods

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.

Parameters:bool – Whether to override PUT and DELETE.
Return type:void

1516.1.1.6. getHttpMethodOverride

getHttpMethodOverride()

Get the HTTP override state

Return type:bool

1516.1.1.7. useHttpConditionalGet

useHttpConditionalGet()

Set the flag indicating whether or not to use HTTP conditional GET

Parameters:bool
Return type:void

1516.1.1.8. import

import()

Import a feed by providing a URI

Parameters:
  • string – The URI to the feed
  • string – OPTIONAL Last received ETag for this resource
  • string – OPTIONAL Last-Modified value for this resource
Return type:

FeedFeedInterface

Throws :

ExceptionRuntimeException

1516.1.1.9. importString

importString()

Import a feed from a string

Parameters:string
Return type:FeedFeedInterface
Throws :ExceptionInvalidArgumentException
Throws :ExceptionRuntimeException

1516.1.1.10. importFile

importFile()

Imports a feed from a file located at $filename.

Parameters:string
Throws ExceptionRuntimeException:
 
Return type:FeedFeedInterface

1516.1.1.12. detectType

detectType()

Detect the feed type of the provided feed

Parameters:
  • FeedAbstractFeed|DOMDocument|string
  • bool
Return type:

string

Throws :

ExceptionInvalidArgumentException

Throws :

ExceptionRuntimeException

1516.1.1.13. setExtensionManager

setExtensionManager()

Set plugin manager for use with Extensions

Parameters:ExtensionManager

1516.1.1.14. getExtensionManager

getExtensionManager()

Get plugin manager for use with Extensions

Return type:ExtensionManager

1516.1.1.15. registerExtension

registerExtension()

Register an Extension by name

Parameters:string
Return type:void
Throws :ExceptionRuntimeException if unable to resolve Extension class

1516.1.1.16. isRegistered

isRegistered()

Is a given named Extension registered?

Parameters:string
Return type:bool

1516.1.1.17. getExtensions

getExtensions()

Get a list of extensions

Return type:array

1516.1.1.18. reset

reset()

Reset class state to defaults

Return type:void

1516.1.1.19. registerCoreExtensions

registerCoreExtensions()

Register core (default) extensions

Return type:void

1516.1.1.20. arrayUnique

arrayUnique()

Utility method to apply array_unique operation to a multidimensional array.

Parameters:array
Return type:array

1516.1.2. Constants

1516.1.2.1. NAMESPACE_ATOM_03

Namespace constants

1516.1.2.2. NAMESPACE_ATOM_10

1516.1.2.3. NAMESPACE_RDF

1516.1.2.4. NAMESPACE_RSS_090

1516.1.2.5. NAMESPACE_RSS_10

1516.1.2.6. TYPE_ANY

Feed type constants

1516.1.2.7. TYPE_ATOM_03

1516.1.2.8. TYPE_ATOM_10

1516.1.2.9. TYPE_ATOM_10_ENTRY

1516.1.2.10. TYPE_ATOM_ANY

1516.1.2.11. TYPE_RSS_090

1516.1.2.12. TYPE_RSS_091

1516.1.2.13. TYPE_RSS_091_NETSCAPE

1516.1.2.14. TYPE_RSS_091_USERLAND

1516.1.2.15. TYPE_RSS_092

1516.1.2.16. TYPE_RSS_093

1516.1.2.17. TYPE_RSS_094

1516.1.2.18. TYPE_RSS_10

1516.1.2.19. TYPE_RSS_20

1516.1.2.20. TYPE_RSS_ANY