Zend\Feed\Reader\Extension\Atom\Entry
Synopsis
class Entry
extends AbstractEntry
{
- // Inherited members from AbstractEntry
- protected array $data;
- protected DOMDocument $domDocument;
- protected DOMElement $entry;
- protected integer $entryKey;
- protected DOMXPath $xpath;
- protected string $xpathPrefix;
- // methods
- public string|null getAuthor()
- public Author getAuthors()
- public string getContent()
- protected mixed collectXhtml()
- public string getDateCreated()
- public string getDateModified()
- public string getDescription()
- public string getEnclosure()
- public string getId()
- public string|null getBaseUrl()
- public string getLink()
- public array getLinks()
- public string getPermalink()
- public string getTitle()
- public int getCommentCount()
- public string getCommentLink()
- public string getCommentFeedLink()
- public Category getCategories()
- public Source|null getSource()
- protected string absolutiseUri()
- protected string getAuthorFromElement()
- protected void registerNamespaces()
- protected string getAtomType()
- // Inherited methods from AbstractEntry
- public AbstractEntry setEntryElement()
- public DOMElement getEntryElement()
- public AbstractEntry setEntryKey()
- public DOMDocument getDomDocument()
- public string getEncoding()
- public AbstractEntry setType()
- public string getType()
- public AbstractEntry setXpath()
- public DOMXPath getXpath()
- public array toArray()
- public string getXpathPrefix()
- public AbstractEntry setXpathPrefix()
- protected abstract void registerNamespaces()
Hierarchy
Tasks
Line | Task |
---|---|
55 | Limit query to feed level els only! |
529 | Investigate why _getAtomType() fails here. Is it even needed? |
Members
protected
- $data
—
array
Feed entry data - $domDocument
—
DOMDocument
DOM document object - $entry
—
DOMElement
Entry instance - $entryKey
—
int
Pointer to the current entry - $xpath
—
DOMXPath
XPath object - $xpathPrefix
—
string
XPath query
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.
- collectXhtml() — Parse out XHTML to remove the namespacing
- getAtomType() — Detect the presence of any Atom namespaces in use
- getAuthorFromElement() — Get an author entry
- registerNamespaces() — Register the default namespaces for the current feed format
public
- getAuthor() — Get the specified author
- getAuthors() — Get an array with feed authors
- getBaseUrl() — Get the base URI of the feed (if set).
- getCategories() — Get all categories
- getCommentCount() — Get the number of comments/replies for current entry
- getCommentFeedLink() — Returns a URI pointing to a feed of all comments for this entry
- getCommentLink() — Returns a URI pointing to the HTML page where comments can be made on this entry
- getContent() — Get the entry content
- getDateCreated() — Get the entry creation date
- getDateModified() — Get the entry modification date
- getDescription() — Get the entry description
- getEnclosure() — Get the entry enclosure
- getId() — Get the entry ID
- getLink() — Get a specific link
- getLinks() — Get all links
- getPermalink() — Get a permalink to the entry
- getSource() — Get source feed metadata from the entry
- getTitle() — Get the entry title
Inherited from Zend\Feed\Reader\Extension\AbstractEntry
protected
- registerNamespaces() — Register XML namespaces
public
- getDomDocument() — Get the DOM
- getEncoding() — Get the Entry's encoding
- getEntryElement() — Get the entry DOMElement
- getType() — Get the entry type
- getXpath() — Get the XPath query object
- getXpathPrefix() — Get the XPath prefix
- setEntryElement() — Set the entry DOMElement
- setEntryKey() — Set the entry key
- setType() — Set the entry type
- setXpath() — Set the XPath query
- setXpathPrefix() — Set the XPath prefix
- toArray() — Serialize the entry to an array