FeedCreatorFeedCreator is the abstract base implementation for concrete implementations that implement a specific format of syndication.
Located in /de.bitfolge.feedcreator/feedcreator.php (line 493)
HtmlDescribable | --FeedCreator
| Class | Description |
|---|---|
UniversalFeedCreator
|
UniversalFeedCreator lets you choose during runtime which format to build. |
RSSCreator10
|
RSSCreator10 is a FeedCreator that implements RDF Site Summary (RSS) 1.0. |
RSSCreator091
|
RSSCreator091 is a FeedCreator that implements RSS 0.91 Spec, revision 3. |
KMLCreator
|
KMLCreator is a FeedCreator that implements a KML output, suitable for Keyhole/Google Earth |
GPXCreator
|
GPXCreator is a FeedCreator that implements a GPX output, suitable for a GIS packages |
PHPCreator
|
PHPCreator is a FeedCreator that implements a PHP output, suitable for a include |
PIECreator01
|
PIECreator01 is a FeedCreator that implements the emerging PIE specification, as in http://intertwingly.net/wiki/pie/Syntax. |
AtomCreator03
|
AtomCreator03 is a FeedCreator that implements the atom specification, as in http://www.intertwingly.net/wiki/pie/FrontPage. |
MBOXCreator
|
MBOXCreator is a FeedCreator that implements the mbox format as described in http://www.qmail.org/man/man5/mbox.html |
OPMLCreator
|
OPMLCreator is a FeedCreator that implements OPML 1.0. |
HTMLCreator
|
HTMLCreator is a FeedCreator that writes an HTML feed file to a specific location, overriding the createFeed method of the parent FeedCreator. |
mixed
$additionalElements
= array() (line 542)
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.
mixed
$category
(line 504)
mixed
$contentType
= "application/xml" (line 524)
This feed's MIME content type.
mixed
$copyright
(line 504)
mixed
$description
(line 498)
mixed
$docs
(line 504)
mixed
$editor
(line 504)
mixed
$editorEmail
(line 504)
mixed
$encoding
= "UTF-8" (line 531)
This feed's character encoding.
mixed
$format
= 'BASE' (line 499)
mixed
$image
(line 504)
mixed
$items
= array() (line 516)
mixed
$language
(line 504)
mixed
$lastBuildDate
(line 504)
mixed
$link
(line 498)
mixed
$pubDate
(line 504)
mixed
$rating
(line 504)
mixed
$skipDays
(line 504)
mixed
$skipHours
(line 504)
mixed
$syndicationURL
(line 504)
Optional attributes of a feed.
mixed
$title
(line 498)
Mandatory attributes of a feed.
mixed
$ttl
(line 504)
mixed
$webmaster
(line 504)
mixed
$xslStyleSheet
= "" (line 510)
The url of the external xsl stylesheet used to format the naked rss feed.
Ignored in the output when empty.
Inherited from HtmlDescribable
HtmlDescribable::$descriptionHtmlSyndicated
HtmlDescribable::$descriptionTruncSize
Adds an FeedItem to the feed.
Builds the feed's text.
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.
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.
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).
Creates a string containing all additional elements specified in $additionalElements.
Creates a comment indicating the generator of this feed.
The format of this comment seems to be recognized by Syndic8.com.
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
Inherited From HtmlDescribable
HtmlDescribable::getDescription()
Documentation generated on Tue, 15 Aug 2006 12:31:28 +0300 by phpDocumentor 1.3.0RC3