1510. Class

1510.1. Zend\Feed\Reader\AbstractFeed

1510.1.1. Methods

1510.1.1.1. __construct

__construct()

Constructor

Parameters:
  • DomDocument – The DOM object for the feed’s XML
  • string – Feed type

1510.1.1.2. setOriginalSourceUri

setOriginalSourceUri()

Set an original source URI for the feed being parsed. This value is returned from getFeedLink() method if the feed does not carry a self-referencing URI.

Parameters:string

1510.1.1.3. getOriginalSourceUri

getOriginalSourceUri()

Get an original source URI for the feed being parsed. Returns null if unset or the feed was not imported from a URI.

Return type:string|null

1510.1.1.4. count

count()

Get the number of feed entries. Required by the Iterator interface.

Return type:int

1510.1.1.5. current

current()

Return the current entry

Return type:ZendFeedReaderAbstractEntry

1510.1.1.6. getDomDocument

getDomDocument()

Get the DOM

Return type:DOMDocument

1510.1.1.7. getEncoding

getEncoding()

Get the Feed’s encoding

Return type:string

1510.1.1.8. saveXml

saveXml()

Get feed as xml

Return type:string

1510.1.1.9. getElement

getElement()

Get the DOMElement representing the items/feed element

Return type:DOMElement

1510.1.1.10. getXpath

getXpath()

Get the DOMXPath object for this feed

Return type:DOMXPath

1510.1.1.11. getType

getType()

Get the feed type

Return type:string

1510.1.1.12. key

key()

Return the current feed key

Return type:int

1510.1.1.14. rewind

rewind()

Reset the pointer in the feed object

1510.1.1.15. valid

valid()

Check to see if the iterator is still valid

Return type:bool

1510.1.1.16. getExtensions

getExtensions()

1510.1.1.17. __call

__call()

1510.1.1.18. getExtension

getExtension()

Return an Extension object with the matching name (postfixed with _Feed)

Parameters:string
Return type:ZendFeedReaderExtensionAbstractFeed

1510.1.1.19. loadExtensions

loadExtensions()

1510.1.1.20. indexEntries

indexEntries()

Read all entries to the internal entries array

1510.1.1.21. registerNamespaces

registerNamespaces()

Register the default namespaces for the current feed format