Logo Search packages:      
Sourcecode: websvn version File versions  Download package

UniversalFeedCreator::saveFeed ( format = "RSS0.91",
filename = "",
displayContents = true 
)

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.

Since:
1.4
Parameters:
string format format the feed should comply to. Valid values are: "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM0.3".
string 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 optional send the content of the file or not. If true, the file will be sent in the body of the response.

Definition at line 291 of file feedcreator.class.php.

                                                                              {
        $this->_setFormat($format);
        $this->_feed->saveFeed($filename, $displayContents);
    }


Generated by  Doxygen 1.6.0   Back to index