Zend\Feed\Writer\Entry
Synopsis
class Entry
{
- // members
- protected array $data;
- protected array $extensions;
- protected string $type;
- // methods
- public void __construct()
- public Entry addAuthor()
- public Entry addAuthors()
- public Entry setEncoding()
- public string|null getEncoding()
- public Entry setCopyright()
- public Entry setContent()
- public Entry setDateCreated()
- public Entry setDateModified()
- public Entry setDescription()
- public Entry setId()
- public Entry setLink()
- public Entry setCommentCount()
- public Entry setCommentLink()
- public Entry setCommentFeedLink()
- public Entry setCommentFeedLinks()
- public Entry setTitle()
- public array getAuthors()
- public string getContent()
- public string getCopyright()
- public string getDateCreated()
- public string getDateModified()
- public string getDescription()
- public string getId()
- public string|null getLink()
- public array getLinks()
- public string getTitle()
- public int getCommentCount()
- public string getCommentLink()
- public string getCommentFeedLinks()
- public Entry addCategory()
- public Entry addCategories()
- public string|null getCategories()
- public Entry setEnclosure()
- public array getEnclosure()
- public Entry remove()
- public array getExtensions()
- public getExtension()
- public Entry setType()
- public string getType()
- public mixed __call()
- public Source createSource()
- public Entry setSource()
- public Source getSource()
- protected void _loadExtensions()
Members
protected
- $data
—
array
Internal array containing all data associated with this entry or item. - $extensions
—
array
Registered extensions - $type
—
string
Holds the value "atom" or "rss" depending on the feed type set when when last exported.
Methods
protected
- _loadExtensions() — Load extensions from Zend\Feed\Writer\Writer
public
- __construct() — Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.
- __call() — Method overloading: call given method on first extension implementing it
- addAuthor() — Set a single author
- addAuthors() — Set an array with feed authors
- addCategories() — Set an array of entry categories
- addCategory() — Add an entry category
- createSource() — Creates a new Zend\Feed\Writer\Source data container for use. This is NOT added to the current feed automatically, but is necessary to create a container with some initial values preset based on the current feed data.
- getAuthors() — Get an array with feed authors
- getCategories() — Get the entry categories
- getCommentCount() — Get the number of comments/replies for current entry
- getCommentFeedLinks() — Returns an array of URIs pointing to a feed of all comments for this entry where the array keys indicate the feed type (atom, rss or rdf).
- getCommentLink() — Returns a URI pointing to the HTML page where comments can be made on this entry
- getContent() — Get the entry content
- getCopyright() — Get the entry copyright information
- getDateCreated() — Get the entry creation date
- getDateModified() — Get the entry modification date
- getDescription() — Get the entry description
- getEnclosure() — Retrieve an array of all enclosures to be added to entry.
- getEncoding() — Get the feed character encoding
- getExtension() — Return an Extension object with the matching name (postfixed with _Entry)
- getExtensions() — Get registered extensions
- getId() — Get the entry ID
- getLink() — Get a link to the HTML source
- getLinks() — Get all links
- getSource()
- getTitle() — Get the entry title
- getType() — Retrieve the current or last feed type exported.
- remove() — Unset a specific data point
- setCommentCount() — Set the number of comments associated with this entry
- setCommentFeedLink() — Set a link to an XML feed for any comments associated with this entry
- setCommentFeedLinks() — Set a links to an XML feed for any comments associated with this entry.
- setCommentLink() — Set a link to a HTML page containing comments associated with this entry
- setContent() — Set the entry's content
- setCopyright() — Set the copyright entry
- setDateCreated() — Set the feed creation date
- setDateModified() — Set the feed modification date
- setDescription() — Set the feed description
- setEnclosure() — Adds an enclosure to the entry. The array parameter may contain the keys 'uri', 'type' and 'length'. Only 'uri' is required for Atom, though the others must also be provided or RSS rendering (where they are required) will throw an Exception.
- setEncoding() — Set the feed character encoding
- setId() — Set the feed ID
- setLink() — Set a link to the HTML source of this entry
- setSource() — Appends a Zend\Feed\Writer\Entry object representing a new entry/item the feed data container's internal group of entries.
- setTitle() — Set the feed title
- setType() — Set the current feed type being exported to "rss" or "atom". This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.