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.
Tags:
since:
1.4
Overrides FeedCreator::saveFeed() (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.)
Parameters:
string
$format
format format the feed should comply to. Valid values are: "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM", "ATOM0.3", "HTML", "JS"
string
$filename
filename 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()).
boolean
$displayContents
displayContents optional send the content of the file or not. If true, the file will be sent in the body of the response.
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).
Overrides FeedCreator::useCached() (Turns on caching and checks if there is a recent version of this feed in the cache.)
Parameters:
string
$format
format format the feed should comply to. Valid values are: "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM0.3".
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)