Skip to content

Latest commit

 

History

History
250 lines (108 loc) · 2.69 KB

AbstractFeed.rst

File metadata and controls

250 lines (108 loc) · 2.69 KB

Class

Zend\Feed\Reader\Feed\AbstractFeed

Methods


__construct()

Constructor

param DOMDocument

The DOM object for the feed's XML

param string

Feed type

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.

param string

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.

rtype

string|null

count

count()

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

rtype

int

current

current()

Return the current entry

rtype

ZendFeedReaderEntryEntryInterface

getDomDocument

getDomDocument()

Get the DOM

rtype

DOMDocument

getEncoding

getEncoding()

Get the Feed's encoding

rtype

string

saveXml

saveXml()

Get feed as xml

rtype

string

getElement

getElement()

Get the DOMElement representing the items/feed element

rtype

DOMElement

getXpath

getXpath()

Get the DOMXPath object for this feed

rtype

DOMXPath

getType

getType()

Get the feed type

rtype

string

key

key()

Return the current feed key

rtype

int

next

next()

Move the feed pointer forward

rewind

rewind()

Reset the pointer in the feed object

valid

valid()

Check to see if the iterator is still valid

rtype

bool

getExtensions

getExtensions()


__call()

getExtension

getExtension()

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

param string
rtype

ZendFeedReaderExtensionAbstractFeed

loadExtensions

loadExtensions()

indexEntries

indexEntries()

Read all entries to the internal entries array

registerNamespaces

registerNamespaces()

Register the default namespaces for the current feed format