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.
static string iTrunc(
string
$string, int
$length)
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.
Tags:
return:
the truncated string
Parameters:
string
$string
string A string to be truncated.
int
$length
length the maximum length the string should be truncated to
Saves this feed as a file on the local disk. After the file is saved, an HTTP redirect header may be sent to redirect the use to the newly created file.
Parameters:
filename
$filename
string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
redirect
$displayContents
boolean optional send an HTTP redirect header or not. If true, the user will be automatically redirected to the 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).
Turns on caching and checks if there is a recent version of this feed in the cache.
Parameters:
filename
$filename
string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
timeout
$timeout
int optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour)