コード例 #1
0
 /**
  * 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
  *
  * @param   string  $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"
  * @param   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()).
  * @param   boolean $displayContents optional    send the content of the file or not. If true, the file will be sent in the body of the response.
  */
 function saveFeed($format = "RSS0.91", $filename = "", $displayContents = true)
 {
     $this->_setFormat($format);
     $this->_feed->saveFeed($filename, $displayContents);
 }