Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
array $_data = 'array'
Internal array containing all data associated with this entry or item.
array $_extensions = 'array'
Registered extensions
string $_type = 'null'
Holds the value "atom" or "rss" depending on the feed type set when when last exported.
__call(
string $method, array $args
)
:
mixed
Method overloading: call given method on first extension implementing it
__construct(
)
:
void
Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.
_loadExtensions(
)
:
void
Load extensions from Zend_Feed_Writer
addAuthor(
$name, $email
=
null, $uri
=
null
)
:
string|null
Set a single author
addAuthors(
$authors
)
:
array
Set an array with feed authors
addCategories(
array $categories
)
:
Set an array of entry categories
addCategory(
string $category
)
:
Add a entry category
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.
getAuthors(
)
:
array
Get an array with feed authors
getCategories(
)
:
string|null
Get the entry categories
getCommentCount(
)
:
integer
Get the number of comments/replies for current entry
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).
getCommentLink(
)
:
string
Returns a URI pointing to the HTML page where comments can be made on this entry
getContent(
)
:
string
Get the entry content
getCopyright(
)
:
string
Get the entry copyright information
getDateCreated(
)
:
string
Get the entry creation date
getDateModified(
)
:
string
Get the entry modification date
getDescription(
)
:
string
Get the entry description
getEnclosure(
)
:
array
Retrieve an array of all enclosures to be added to entry.
getEncoding(
)
:
string|null
Get the feed character encoding
getExtension(
string $name
)
:
object
Return an Extension object with the matching name (postfixed with _Entry)
getExtensions(
)
:
array
Get registered extensions
getId(
)
:
string
Get the entry ID
getLink(
)
:
string|null
Get a link to the HTML source
getLinks(
)
:
array
Get all links
getTitle(
)
:
string
Get the entry title
getType(
)
:
string
Retrieve the current or last feed type exported.
remove(
string $name
)
:
Unset a specific data point
setCommentCount(
$count
)
:
string|null
Set the number of comments associated with this entry
setCommentFeedLink(
$link
)
:
string|null
Set a link to an XML feed for any comments associated with this entry
setCommentFeedLinks(
$links
)
:
string|null
Set a links to an XML feed for any comments associated with this entry.
Each link is an array with keys "uri" and "type", where type is one of: "atom", "rss" or "rdf".
setCommentLink(
$link
)
:
string|null
Set a link to a HTML page containing comments associated with this entry
setContent(
$content
)
:
string|null
Set the entry's content
setCopyright(
$copyright
)
:
string|null
Set the copyright entry
setDateCreated(
$date
=
null
)
:
string|null
Set the feed creation date
setDateModified(
$date
=
null
)
:
string|null
Set the feed modification date
setDescription(
$description
)
:
string|null
Set the feed description
setEnclosure(
$enclosure
)
:
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(
$encoding
)
:
string|null
Set the feed character encoding
setId(
$id
)
:
string|null
Set the feed ID
setLink(
$link
)
:
string|null
Set a link to the HTML source of this entry
setSource(
Zend_Feed_Writer_Source $source
)
:
Appends a Zend_Feed_Writer_Entry object representing a new entry/item the feed data container's internal group of entries.
setTitle(
$title
)
:
string|null
Set the feed title
setType(
string $type
)
:
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.