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'
Contains all Feed level date to append in feed output
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
_validateTagUri(
string $id
)
:
bool
Validate a URI using the tag scheme (RFC 4151)
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 feed categories
addCategory(
string $category
)
:
Add a feed category
addHub(
string $url
)
:
Add a Pubsubhubbub hub endpoint URL
addHubs(
array $urls
)
:
Add Pubsubhubbub hub endpoint URLs
getAuthor(
int $index
=
0
)
:
string|null
Get a single author
getAuthors(
)
:
array
Get an array with feed authors
getBaseUrl(
)
:
string|null
Get the feed's base url
getCategories(
)
:
string|null
Get the feed categories
getCopyright(
)
:
string|null
Get the copyright entry
getDateCreated(
)
:
string|null
Get the feed creation date
getDateModified(
)
:
string|null
Get the feed modification date
getDescription(
)
:
string|null
Get the feed description
getEncoding(
)
:
string|null
Get the feed character encoding
getFeedLinks(
)
:
string|null
Get a link to the XML feed
getGenerator(
)
:
string|null
Get the feed generator entry
getHubs(
)
:
string|null
Get the URLs used as Pubsubhubbub hubs endpoints
getId(
)
:
string|null
Get the feed ID
getImage(
)
:
array
Get the feed image URI
getLanguage(
)
:
string|null
Get the feed language
getLastBuildDate(
)
:
string|null
Get the feed last-build date
getLink(
)
:
string|null
Get a link to the HTML source
getTitle(
)
:
string|null
Get the feed title
getType(
)
:
string
Retrieve the current or last feed type exported.
remove(
string $name
)
:
Unset a specific data point
reset(
)
:
void
Resets the instance and deletes all data
setBaseUrl(
string $url
)
:
Set the feed's base URL
setCopyright(
$copyright
)
:
string|null
Set the copyright entry
setDateCreated(
$date
=
null
)
:
Set the feed creation date
setDateModified(
$date
=
null
)
:
Set the feed modification date
setDescription(
$description
)
:
string|null
Set the feed description
setEncoding(
string $encoding
)
:
Set the feed character encoding
setFeedLink(
$link, $type
)
:
string|null
Set a link to an XML feed for any feed type/version
setGenerator(
$name, $version
=
null, $uri
=
null
)
:
string|null
Set the feed generator entry
setId(
string $id
)
:
Set the feed ID - URI or URN (via PCRE pattern) supported
setImage(
array $data
)
:
Set a feed image (URI at minimum). Parameter is a single array with the required key 'uri'. When rendering as RSS, the required keys are 'uri', 'title' and 'link'. RSS also specifies three optional parameters 'width', 'height' and 'description'. Only 'uri' is required and used for Atom rendering.
setLanguage(
$language
)
:
string|null
Set the feed language
setLastBuildDate(
$date
=
null
)
:
Set the feed last-build date. Ignored for Atom 1.0.
setLink(
string $link
)
:
Set a link to the HTML source
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.