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) : mixed
Method 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() : void
Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.
addAuthor( $name, $email = null, $uri = null) : string | null
Set a single author
Name | Type | Description |
---|---|---|
$name | ||
$uri |
Type | Description |
---|---|
string | null |
addAuthors( $authors) : array
Set an array with feed authors
Name | Type | Description |
---|---|---|
$authors |
Type | Description |
---|---|
array |
addCategories(array $categories) : void
Set an array of entry categories
Name | Type | Description |
---|---|---|
$categories | array |
addCategory(string $category) : void
Add a entry category
Name | Type | Description |
---|---|---|
$category | string |
createSource() : \Zend_Feed_Writer_Source
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.
Type | Description |
---|---|
\Zend_Feed_Writer_Source |
getCommentCount() : integer
Get the number of comments/replies for current entry
Type | Description |
---|---|
integer |
getCommentFeedLinks() : string
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).
Type | Description |
---|---|
string |
getCommentLink() : string
Returns a URI pointing to the HTML page where comments can be made on this entry
Type | Description |
---|---|
string |
getEnclosure() : array
Retrieve an array of all enclosures to be added to entry.
Type | Description |
---|---|
array |
getExtension(string $name) : object
Return an Extension object with the matching name (postfixed with _Entry)
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
object |
getType() : string
Retrieve the current or last feed type exported.
Type | Description |
---|---|
string | Value will be "rss" or "atom" |
setCommentCount( $count) : string | null
Set the number of comments associated with this entry
Name | Type | Description |
---|---|---|
$count |
Type | Description |
---|---|
string | null |
setCommentFeedLink( $link) : string | null
Set a link to an XML feed for any comments associated with this entry
Name | Type | Description |
---|---|---|
$link |
Type | Description |
---|---|
string | null |
setCommentFeedLinks( $links) : string | null
Set a links to an XML feed for any comments associated with this entry.
Name | Type | Description |
---|---|---|
$links |
Type | Description |
---|---|
string | null |
setCommentLink( $link) : string | null
Set a link to a HTML page containing comments associated with this entry
Name | Type | Description |
---|---|---|
$link |
Type | Description |
---|---|
string | null |
setContent( $content) : string | null
Set the entry's content
Name | Type | Description |
---|---|---|
$content |
Type | Description |
---|---|
string | null |
setCopyright( $copyright) : string | null
Set the copyright entry
Name | Type | Description |
---|---|---|
$copyright |
Type | Description |
---|---|
string | null |
setDateCreated( $date = null) : string | null
Set the feed creation date
Name | Type | Description |
---|---|---|
$date |
Type | Description |
---|---|
string | null |
setDateModified( $date = null) : string | null
Set the feed modification date
Name | Type | Description |
---|---|---|
$date |
Type | Description |
---|---|
string | null |
setDescription( $description) : string | null
Set the feed description
Name | Type | Description |
---|---|---|
$description |
Type | Description |
---|---|
string | null |
setEnclosure( $enclosure) : void
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.
Name | Type | Description |
---|---|---|
$enclosure |
setEncoding( $encoding) : string | null
Set the feed character encoding
Name | Type | Description |
---|---|---|
$encoding |
Type | Description |
---|---|
string | null |
setId( $id) : string | null
Set the feed ID
Name | Type | Description |
---|---|---|
$id |
Type | Description |
---|---|
string | null |
setLink( $link) : string | null
Set a link to the HTML source of this entry
Name | Type | Description |
---|---|---|
$link |
Type | Description |
---|---|
string | null |
setSource(\Zend_Feed_Writer_Source $source) : void
Appends 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 | null
Set the feed title
Name | Type | Description |
---|---|---|
$title |
Type | Description |
---|---|
string | null |