Inheritance diagram for FeedCreator:
Definition at line 467 of file feedcreator.class.php.
Public Member Functions | |
addItem ($item) | |
Adds an FeedItem to the feed. | |
_createGeneratorComment () | |
Creates a comment indicating the generator of this feed. | |
_createAdditionalElements ($elements, $indentString="") | |
Creates a string containing all additional elements specified in $additionalElements. | |
_createStylesheetReferences () | |
createFeed () | |
Builds the feed's text. | |
_generateFilename () | |
Generate a filename for the feed cache file. | |
_redirect ($filename) | |
| |
useCached ($filename="", $timeout=3600) | |
Turns on caching and checks if there is a recent version of this feed in the cache. | |
saveFeed ($filename="", $displayContents=true) | |
Saves this feed as a file on the local disk. | |
Static Public Member Functions | |
iTrunc ($string, $length) | |
Truncates a string to a certain length at the most sensible point. | |
Public Attributes | |
$title | |
Mandatory attributes of a feed. | |
$description | |
Mandatory attributes of a feed. | |
$link | |
Mandatory attributes of a feed. | |
$syndicationURL | |
Optional attributes of a feed. | |
$image | |
Optional attributes of a feed. | |
$language | |
Optional attributes of a feed. | |
$copyright | |
Optional attributes of a feed. | |
$pubDate | |
Optional attributes of a feed. | |
$lastBuildDate | |
Optional attributes of a feed. | |
$editor | |
Optional attributes of a feed. | |
$editorEmail | |
Optional attributes of a feed. | |
$webmaster | |
Optional attributes of a feed. | |
$category | |
Optional attributes of a feed. | |
$docs | |
Optional attributes of a feed. | |
$ttl | |
Optional attributes of a feed. | |
$rating | |
Optional attributes of a feed. | |
$skipHours | |
Optional attributes of a feed. | |
$skipDays | |
Optional attributes of a feed. | |
$xslStyleSheet = "" | |
The url of the external xsl stylesheet used to format the naked rss feed. | |
$items = Array() | |
private | |
$contentType = "application/xml" | |
This feed's MIME content type. | |
$encoding = "ISO-8859-1" | |
This feed's character encoding. | |
$additionalElements = Array() | |
Any additional elements to include as an assiciated array. |
|
Creates a string containing all additional elements specified in $additionalElements.
Definition at line 587 of file feedcreator.class.php. Referenced by AtomCreator03::createFeed(), RSSCreator091::createFeed(), and RSSCreator10::createFeed(). |
|
Creates a comment indicating the generator of this feed. The format of this comment seems to be recognized by Syndic8.com. Definition at line 575 of file feedcreator.class.php. Referenced by OPMLCreator::createFeed(), AtomCreator03::createFeed(), RSSCreator091::createFeed(), and RSSCreator10::createFeed(). |
|
Definition at line 597 of file feedcreator.class.php. Referenced by OPMLCreator::createFeed(), AtomCreator03::createFeed(), PIECreator01::createFeed(), RSSCreator091::createFeed(), and RSSCreator10::createFeed(). |
|
Generate a filename for the feed cache file. The result will be $_SERVER["PHP_SELF"] with the extension changed to .xml. For example: echo $_SERVER["PHP_SELF"]."\n"; echo FeedCreator::_generateFilename(); would produce: /rss/latestnews.php latestnews.xml
Reimplemented in MBOXCreator, HTMLCreator, and JSCreator. Definition at line 629 of file feedcreator.class.php. Referenced by saveFeed(), and useCached(). |
|
Definition at line 643 of file feedcreator.class.php. Referenced by saveFeed(), and useCached(). |
|
Adds an FeedItem to the feed.
Definition at line 525 of file feedcreator.class.php. |
|
Builds the feed's text.
Reimplemented in RSSCreator10, RSSCreator091, PIECreator01, AtomCreator03, MBOXCreator, OPMLCreator, HTMLCreator, and JSCreator. Definition at line 610 of file feedcreator.class.php. |
|
Truncates a string to a certain length at the most sensible point. First, if there's a '.' character near the end of the string, the string is truncated after this character. If there is no '.', the string is truncated after the last ' ' character. If the string is truncated, " ..." is appended. If the string is already shorter than $length, it is returned unchanged.
Definition at line 542 of file feedcreator.class.php. Referenced by HTMLCreator::createFeed(), and FeedHtmlField::output(). |
|
Saves this feed as a file on the local disk. After the file is saved, a redirect header may be sent to redirect the user to the newly created file.
Definition at line 698 of file feedcreator.class.php. References _generateFilename(), and _redirect(). |
|
Turns on caching and checks if there is a recent version of this feed in the cache. If there is, an HTTP redirect header is sent. To effectively use caching, you should create the FeedCreator object and call this method before anything else, especially before you do the time consuming task to build the feed (web fetching, for example).
Definition at line 679 of file feedcreator.class.php. References _generateFilename(), and _redirect(). |
|
Any additional elements to include as an assiciated array. All $key => $value pairs will be included unencoded in the feed in the form <$key>$value</$key> Again: No encoding will be used! This means you can invalidate or enhance the feed if $value contains markup. This may be abused to embed tags not implemented by the FeedCreator class used. Definition at line 516 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
This feed's MIME content type.
Reimplemented in HTMLCreator, and JSCreator. Definition at line 498 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Mandatory attributes of a feed.
Definition at line 472 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
This feed's character encoding.
Definition at line 505 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
private
Definition at line 490 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Mandatory attributes of a feed.
Definition at line 472 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Mandatory attributes of a feed.
Definition at line 472 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
Optional attributes of a feed.
Definition at line 478 of file feedcreator.class.php. |
|
The url of the external xsl stylesheet used to format the naked rss feed. Ignored in the output when empty. Definition at line 484 of file feedcreator.class.php. |