Zend\Feed\Reader\Extension\Atom\Feed
Synopsis
class Feed
extends AbstractFeed
{
- // Inherited members from AbstractFeed
- protected array $data;
- protected DOMDocument $domDocument;
- protected DOMXPath $xpath;
- protected string $xpathPrefix;
- // methods
- public string|null getAuthor()
- public Author getAuthors()
- public string|null getCopyright()
- public DateTime|null getDateCreated()
- public DateTime|null getDateModified()
- public string|null getDescription()
- public string|null getGenerator()
- public string|null getId()
- public string|null getLanguage()
- public array|null getImage()
- public string|null getBaseUrl()
- public string|null getLink()
- public string|null getFeedLink()
- public array|null getHubs()
- public string|null getTitle()
- public Category getCategories()
- protected string getAuthorFromElement()
- protected void absolutiseUri()
- protected void registerNamespaces()
- protected void getAtomType()
- // Inherited methods from AbstractFeed
- public AbstractFeed setDomDocument()
- public DOMDocument getDomDocument()
- public string getEncoding()
- public AbstractFeed setType()
- public string getType()
- public array toArray()
- public AbstractEntry setXpath()
- public string getXpath()
- public string getXpathPrefix()
- public void setXpathPrefix()
- protected abstract void registerNamespaces()
Hierarchy
Tasks
Line | Task |
---|---|
197 | Add uri support |
Members
protected
- $data
—
array
Parsed feed data - $domDocument
—
DOMDocument
Parsed feed data in the shape of a DOMDocument - $xpath
—
DOMXPath
The base XPath query used to retrieve feed data - $xpathPrefix
—
string
The XPath prefix
Methods
protected
- absolutiseUri() — Attempt to absolutise the URI, i.e. if a relative URI apply the xml:base value as a prefix to turn into an absolute URI.
- getAtomType() — Detect the presence of any Atom namespaces in use
- getAuthorFromElement() — Get an author entry in RSS format
- registerNamespaces() — Register the default namespaces for the current feed format
public
- getAuthor() — Get a single author
- getAuthors() — Get an array with feed authors
- getBaseUrl() — Get the base URI of the feed (if set).
- getCategories() — Get all categories
- getCopyright() — Get the copyright entry
- getDateCreated() — Get the feed creation date
- getDateModified() — Get the feed modification date
- getDescription() — Get the feed description
- getFeedLink() — Get a link to the feed's XML Url
- getGenerator() — Get the feed generator entry
- getHubs() — Get an array of any supported Pusubhubbub endpoints
- getId() — Get the feed ID
- getImage() — Get the feed image
- getLanguage() — Get the feed language
- getLink() — Get a link to the source website
- getTitle() — Get the feed title
Inherited from Zend\Feed\Reader\Extension\AbstractFeed
protected
- registerNamespaces() — Register the default namespaces for the current feed format
public
- getDomDocument() — Get the DOM
- getEncoding() — Get the Feed's encoding
- getType() — Get the feed type
- getXpath() — Get the DOMXPath object
- getXpathPrefix() — Get the XPath prefix
- setDomDocument() — Set the DOM document
- setType() — Set the feed type
- setXpath() — Set the XPath query
- setXpathPrefix() — Set the XPath prefix
- toArray() — Return the feed as an array