Methods
Method overloading: call given method on first extension implementing it
__call(string $method, array $args) : mixed
Parameters
$method
string
$args
array
Exceptions
\Zend_Feed_Exception |
if no extensions implements the method |
Returns
mixed
Constructor: Primarily triggers the registration of core extensions and
loads those appropriate to this data container.
__construct() : void
Set a single author
addAuthor($name, $email = null
, $uri = null
) : string | null
Parameters
$name
$email
$uri
Returns
string
null
Set an array with feed authors
addAuthors(array $authors) : array
Parameters
$authors
Returns
array
Set an array of entry categories
addCategories(array $categories)
Parameters
$categories
array
Add a entry category
addCategory(string $category)
Parameters
$category
string
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.
createSource() : \Zend_Feed_Writer_Source
Returns
\Zend_Feed_Writer_Source
Get an array with feed authors
getAuthors() : array
Get the entry categories
getCategories() : string | null
Get the entry content
getContent() : string
Get the entry copyright information
getCopyright() : string
Get the entry creation date
getDateCreated() : string
Get the entry modification date
getDateModified() : string
Get the entry description
getDescription() : string
Retrieve an array of all enclosures to be added to entry.
getEnclosure() : array
Get the feed character encoding
getEncoding() : string | null
Return an Extension object with the matching name (postfixed with _Entry)
getExtension(string $name) : object
Parameters
$name
string
Returns
object
Get registered extensions
getExtensions() : array
Get the entry ID
getId() : string
Get a link to the HTML source
getLink() : string | null
Get all links
getLinks() : array
getSource()
getSource() : \Zend_Feed_Writer_Source
Returns
\Zend_Feed_Writer_Source
Get the entry title
getTitle() : string
Retrieve the current or last feed type exported.
getType() : string
Returns
string
Value will be "rss" or "atom"
Unset a specific data point
remove(string $name)
Set the entry's content
setContent($content) : string | null
Parameters
$content
Returns
string
null
Set the copyright entry
setCopyright($copyright) : string | null
Parameters
$copyright
Returns
string
null
Set the feed creation date
setDateCreated($date = null
) : string | null
Parameters
$date
Returns
string
null
Set the feed modification date
setDateModified($date = null
) : string | null
Parameters
$date
Returns
string
null
Set the feed description
setDescription($description) : string | null
Parameters
$description
Returns
string
null
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.
setEnclosure(array $enclosure)
Set the feed character encoding
setEncoding($encoding) : string | null
Parameters
$encoding
Returns
string
null
Set the feed ID
setId($id) : string | null
Parameters
$id
Returns
string
null
Set a link to the HTML source of this entry
setLink($link) : string | null
Parameters
$link
Returns
string
null
Appends a Zend_Feed_Writer_Entry object representing a new entry/item
the feed data container's internal group of entries.
setSource(\Zend_Feed_Writer_Source $source)
Parameters
$source
\Zend_Feed_Writer_Source
Set the feed title
setTitle($title) : string | null
Parameters
$title
Returns
string
null
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.
setType(string $type)
Load extensions from Zend_Feed_Writer
_loadExtensions() : void
Properties
Internal array containing all data associated with this entry or item.
$_data : array
Registered extensions
$_extensions : array
Holds the value "atom" or "rss" depending on the feed type set when
when last exported.
$_type : string