Methods
__call()
__call($method, $args)
Constructor
__construct(\DOMDocument $domDocument, string $type)
Get the number of feed entries.
count() : int
Required by the Iterator interface.
Returns
int
Get a single author
getAuthor(int $index) : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getAuthor() |
Parameters
$index
int
Returns
string
null
Get an array with feed authors
getAuthors() : array
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getAuthors() |
Returns
array
Get the copyright entry
getCopyright() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getCopyright() |
Returns
string
null
Get the feed creation date
getDateCreated() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getDateCreated() |
Returns
string
null
Get the feed modification date
getDateModified() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getDateModified() |
Returns
string
null
Get the feed description
getDescription() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getDescription() |
Returns
string
null
Get the DOMElement representing the items/feed element
getElement() : \DOMElement
Get the Feed's encoding
getEncoding() : string
Return an Extension object with the matching name (postfixed with _Feed)
getExtension(string $name) : \Zend\Feed\Reader\Extension\AbstractFeed
Parameters
$name
string
Returns
getExtensions()
getExtensions()
Get a link to the XML feed
getFeedLink() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getFeedLink() |
Returns
string
null
Get the feed generator entry
getGenerator() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getGenerator() |
Returns
string
null
Get the feed ID
getId() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getId() |
Returns
string
null
Get the feed language
getLanguage() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getLanguage() |
Returns
string
null
Get a link to the HTML source
getLink() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getLink() |
Returns
string
null
Get an original source URI for the feed being parsed.
getOriginalSourceUri() : string | null
Returns null if
unset or the feed was not imported from a URI.
Returns
string
null
Get the feed title
getTitle() : string | null
Inherited
inherited_from |
\Zend\Feed\Reader\Feed\FeedInterface::getTitle() |
Returns
string
null
Get the feed type
getType() : string
Get the DOMXPath object for this feed
getXpath() : \DOMXPath
Return the current feed key
key() : int
Move the feed pointer forward
next()
Reset the pointer in the feed object
rewind()
Get feed as xml
saveXml() : string
Set an original source URI for the feed being parsed.
setOriginalSourceUri(string $uri)
This value
is returned from getFeedLink() method if the feed does not carry
a self-referencing URI.
Parameters
$uri
string
Check to see if the iterator is still valid
valid() : bool
Read all entries to the internal entries array
indexEntries()
loadExtensions()
loadExtensions()
Register the default namespaces for the current feed format
registerNamespaces()
Properties
Parsed feed data
$data : array
Parsed feed data in the shape of a DOMDocument
$domDocument : \DOMDocument
An array of parsed feed entries
$entries : array
A pointer for the iterator to keep track of the entries array
$entriesKey : int
Array of loaded extensions
$extensions : array
Original Source URI (set if imported from a URI)
$originalSourceUri : string
The base XPath query used to retrieve feed data
$xpath : \DOMXPath