Zend\Feed\Reader\Feed\AbstractFeed
Synopsis
class AbstractFeed
implements
FeedInterface
{
- // members
- protected array $data;
- protected DOMDocument $domDocument;
- protected array $entries;
- protected integer $entriesKey;
- protected DOMXPath $xpath;
- protected array $extensions;
- protected string $originalSourceUri;
- // methods
- public void __construct()
- public void setOriginalSourceUri()
- public string|null getOriginalSourceUri()
- public int count()
- public EntryInterface current()
- public DOMDocument getDomDocument()
- public string getEncoding()
- public string saveXml()
- public DOMElement getElement()
- public DOMXPath getXpath()
- public string getType()
- public int key()
- public void next()
- public void rewind()
- public bool valid()
- public void getExtensions()
- public void __call()
- public AbstractFeed getExtension()
- protected void loadExtensions()
- protected abstract void indexEntries()
- protected abstract void registerNamespaces()
Hierarchy
Extended by
Implements
Members
protected
- $data
—
array
Parsed feed data - $domDocument
—
DOMDocument
Parsed feed data in the shape of a DOMDocument - $entries
—
array
An array of parsed feed entries - $entriesKey
—
int
A pointer for the iterator to keep track of the entries array - $extensions
—
array
Array of loaded extensions - $originalSourceUri
—
string
Original Source URI (set if imported from a URI) - $xpath
—
DOMXPath
The base XPath query used to retrieve feed data
Methods
protected
- indexEntries() — Read all entries to the internal entries array
- loadExtensions()
- registerNamespaces() — Register the default namespaces for the current feed format
public
- __construct() — Constructor
- __call()
- count() — Get the number of feed entries.
- current() — Return the current entry
- getDomDocument() — Get the DOM
- getElement() — Get the DOMElement representing the items/feed element
- getEncoding() — Get the Feed's encoding
- getExtension() — Return an Extension object with the matching name (postfixed with _Feed)
- getExtensions()
- getOriginalSourceUri() — Get an original source URI for the feed being parsed. Returns null if unset or the feed was not imported from a URI.
- getType() — Get the feed type
- getXpath() — Get the DOMXPath object for this feed
- key() — Return the current feed key
- next() — Move the feed pointer forward
- rewind() — Reset the pointer in the feed object
- saveXml() — Get feed as xml
- 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.
- valid() — Check to see if the iterator is still valid