Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container. | |
addAuthor ($name, $email=null, $uri=null) | |
Set a single author. | |
addAuthors (array $authors) | |
Set an array with feed authors. | |
setEncoding ($encoding) | |
Set the feed character encoding. | |
getEncoding () | |
Get the feed character encoding. | |
setCopyright ($copyright) | |
Set the copyright entry. | |
setContent ($content) | |
Set the entry's content. | |
setDateCreated ($date=null) | |
Set the feed creation date. | |
setDateModified ($date=null) | |
Set the feed modification date. | |
setDescription ($description) | |
Set the feed description. | |
setId ($id) | |
Set the feed ID. | |
setLink ($link) | |
Set a link to the HTML source of this entry. | |
setCommentCount ($count) | |
Set the number of comments associated with this entry. | |
setCommentLink ($link) | |
Set a link to a HTML page containing comments associated with this entry. | |
setCommentFeedLink (array $link) | |
Set a link to an XML feed for any comments associated with this entry. | |
setCommentFeedLinks (array $links) | |
Set a links to an XML feed for any comments associated with this entry. | |
setTitle ($title) | |
Set the feed title. | |
getAuthors () | |
Get an array with feed authors. | |
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. | |
getId () | |
Get the entry ID. | |
getLink () | |
Get a link to the HTML source. | |
getLinks () | |
Get all links. | |
getTitle () | |
Get the entry title. | |
getCommentCount () | |
Get the number of comments/replies for current entry. | |
getCommentLink () | |
Returns a URI pointing to the HTML page where comments can be made on this 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). | |
addCategory (array $category) | |
Add a entry category. | |
addCategories (array $categories) | |
Set an array of entry categories. | |
getCategories () | |
Get the entry categories. | |
setEnclosure (array $enclosure) | |
Adds an enclosure to the entry. | |
getEnclosure () | |
Retrieve an array of all enclosures to be added to entry. | |
remove ($name) | |
Unset a specific data point. | |
getExtensions () | |
Get registered extensions. | |
getExtension ($name) | |
Return an Extension object with the matching name (postfixed with _Entry) | |
setType ($type) | |
Set the current feed type being exported to "rss" or "atom". | |
getType () | |
Retrieve the current or last feed type exported. | |
__call ($method, $args) | |
Method overloading: call given method on first extension implementing it. | |
createSource () | |
Creates a new Zend_Feed_Writer_Source data container for use. | |
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. | |
getSource () | |
Protected Member Functions | |
_loadExtensions () | |
Load extensions from Zend_Feed_Writer. | |
Protected Attributes | |
$_data = array() | |
$_extensions = array() | |
$_type = null | |
__construct | ( | ) |
Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.
__call | ( | $method, | |
$args | |||
) |
Method overloading: call given method on first extension implementing it.
string | $method | |
array | $args |
Zend_Feed_Exception | if no extensions implements the method |
|
protected |
Load extensions from Zend_Feed_Writer.
addAuthor | ( | $name, | |
$email = null , |
|||
$uri = null |
|||
) |
Set a single author.
int | $index |
addAuthors | ( | array | $authors | ) |
Set an array with feed authors.
addCategories | ( | array | $categories | ) |
Set an array of entry categories.
array | $categories |
addCategory | ( | array | $category | ) |
Add a entry category.
string | $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 | ( | $name | ) |
Return an Extension object with the matching name (postfixed with _Entry)
string | $name |
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 | ( | $name | ) |
Unset a specific data point.
string | $name |
setCommentCount | ( | $count | ) |
Set the number of comments associated with this entry.
setCommentFeedLink | ( | array | $link | ) |
Set a link to an XML feed for any comments associated with this entry.
setCommentFeedLinks | ( | array | $links | ) |
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 | ) |
Set a link to a HTML page containing comments associated with this entry.
setContent | ( | $content | ) |
Set the entry's content.
setCopyright | ( | $copyright | ) |
Set the copyright entry.
setDateCreated | ( | $date = null | ) |
Set the feed creation date.
setDateModified | ( | $date = null | ) |
Set the feed modification date.
setDescription | ( | $description | ) |
Set the feed description.
setEnclosure | ( | array | $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.
array | $enclosures |
setEncoding | ( | $encoding | ) |
Set the feed character encoding.
setId | ( | $id | ) |
Set the feed ID.
setLink | ( | $link | ) |
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.
Zend_Feed_Writer_Source | $source |
setTitle | ( | $title | ) |
Set the feed title.
setType | ( | $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.
string | $type |
|
protected |
|
protected |
|
protected |