Feed/Writer/Entry.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Writer
- Version
- $Id$
\Zend_Feed_Writer_Entry
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_data = array()array()Details- Type
- array
Methods

__call(string $method, array $args) : mixedMethod overloading: call given method on first extension implementing it
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \Zend_Feed_Exception | if no extensions implements the method |

__construct() : voidConstructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.

addAuthor( $name, $email = null, $uri = null) : string | nullSet a single author
| Name | Type | Description |
|---|---|---|
| $name | ||
| $uri |
| Type | Description |
|---|---|
| string | null |

addAuthors( $authors) : arraySet an array with feed authors
| Name | Type | Description |
|---|---|---|
| $authors |
| Type | Description |
|---|---|
| array |

addCategories(array $categories) : voidSet an array of entry categories
| Name | Type | Description |
|---|---|---|
| $categories | array |

addCategory(string $category) : voidAdd a entry category
| Name | Type | Description |
|---|---|---|
| $category | string |

createSource() : \Zend_Feed_Writer_SourceCreates 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.
| Type | Description |
|---|---|
| \Zend_Feed_Writer_Source |

getCommentCount() : integerGet the number of comments/replies for current entry
| Type | Description |
|---|---|
| integer |

getCommentFeedLinks() : stringReturns 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).
| Type | Description |
|---|---|
| string |

getCommentLink() : stringReturns a URI pointing to the HTML page where comments can be made on this entry
| Type | Description |
|---|---|
| string |

getEnclosure() : arrayRetrieve an array of all enclosures to be added to entry.
| Type | Description |
|---|---|
| array |

getExtension(string $name) : objectReturn an Extension object with the matching name (postfixed with _Entry)
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| object |

getType() : stringRetrieve the current or last feed type exported.
| Type | Description |
|---|---|
| string | Value will be "rss" or "atom" |

setCommentCount( $count) : string | nullSet the number of comments associated with this entry
| Name | Type | Description |
|---|---|---|
| $count |
| Type | Description |
|---|---|
| string | null |

setCommentFeedLink( $link) : string | nullSet a link to an XML feed for any comments associated with this entry
| Name | Type | Description |
|---|---|---|
| $link |
| Type | Description |
|---|---|
| string | null |

setCommentFeedLinks( $links) : string | nullSet a links to an XML feed for any comments associated with this entry.
| Name | Type | Description |
|---|---|---|
| $links |
| Type | Description |
|---|---|
| string | null |

setCommentLink( $link) : string | nullSet a link to a HTML page containing comments associated with this entry
| Name | Type | Description |
|---|---|---|
| $link |
| Type | Description |
|---|---|
| string | null |

setContent( $content) : string | nullSet the entry's content
| Name | Type | Description |
|---|---|---|
| $content |
| Type | Description |
|---|---|
| string | null |

setCopyright( $copyright) : string | nullSet the copyright entry
| Name | Type | Description |
|---|---|---|
| $copyright |
| Type | Description |
|---|---|
| string | null |

setDateCreated( $date = null) : string | nullSet the feed creation date
| Name | Type | Description |
|---|---|---|
| $date |
| Type | Description |
|---|---|
| string | null |

setDateModified( $date = null) : string | nullSet the feed modification date
| Name | Type | Description |
|---|---|---|
| $date |
| Type | Description |
|---|---|
| string | null |

setDescription( $description) : string | nullSet the feed description
| Name | Type | Description |
|---|---|---|
| $description |
| Type | Description |
|---|---|
| string | null |

setEnclosure( $enclosure) : voidAdds 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.
| Name | Type | Description |
|---|---|---|
| $enclosure |

setEncoding( $encoding) : string | nullSet the feed character encoding
| Name | Type | Description |
|---|---|---|
| $encoding |
| Type | Description |
|---|---|
| string | null |

setId( $id) : string | nullSet the feed ID
| Name | Type | Description |
|---|---|---|
| $id |
| Type | Description |
|---|---|
| string | null |

setLink( $link) : string | nullSet a link to the HTML source of this entry
| Name | Type | Description |
|---|---|---|
| $link |
| Type | Description |
|---|---|
| string | null |

setSource(\Zend_Feed_Writer_Source $source) : voidAppends a Zend_Feed_Writer_Entry object representing a new entry/item the feed data container's internal group of entries.
| Name | Type | Description |
|---|---|---|
| $source | \Zend_Feed_Writer_Source |

setTitle( $title) : string | nullSet the feed title
| Name | Type | Description |
|---|---|---|
| $title |
| Type | Description |
|---|---|
| string | null |