RSS creation class.
A single interface to create news feeds in RSS 2.0
(default), 0.91, 0.92 and 0.93 (versions 0.9x and 2.0 are nearly the same),
Atom (according to the pre-draft version 0.3), RSS 3.0 (a human readable
plain text format according to RFC 822) and ESF (a tabulator separated plain
text format).
Most constructor and method calls are similar to the RSSBuilder class by
Michael Wimmer (http://www.flaimo.com/).
Don't hesitate to
report bugs or feature requests.
Variable Summary
maxItemAge -- Maximum item age in days. Defaults to 30.
maxItemCount -- Maximum number of items. Defaults to 15.
Constructor Summary
RSS -- Creates a new RSS object.
Method Summary
addDCData -- Adds some meta data (author, language etc.) to the feed.
addItem -- Adds a new item to the feed.
getRSSOutput -- Returns the final feed as a string.
outputRSS -- Prints the final feed to the browser.
Maximum item age in days. Defaults to 30.
int $maxItemAge
Maximum number of items. Defaults to 15.
int $maxItemCount
Creates a new RSS object.
RSS RSS ( [ string encoding [, string link [, string title [, string description [, string imageUrl [, string category [, int cache]]]]]]])
Adds some meta data (author, language etc.) to the feed.
void addDCData ( [ string publisher [, string creator [, int date [, string language [, string rights [, string coverage [, string contributor]]]]]]])
Adds a new item to the feed.
bool addItem ( [ mixed id [, string title [, string link [, string description [, string subject [, int date [, string author [, mixed commentLink [, int commentCount [, string commentRss]]]]]]]]]])
Returns the final feed as a string.
string getRSSOutput ( [ mixed version])
Prints the final feed to the browser.
void outputRSS ( [ mixed version])