CloneSet1385


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.958class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13567
libraries/bitfolge/feedcreator.php
23585
libraries/bitfolge/feedcreator.php
Clone Instance
1
Line Count
3
Source Line
567
Source File
libraries/bitfolge/feedcreator.php

        /**
         * 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);
              }


Clone Instance
2
Line Count
3
Source Line
585
Source File
libraries/bitfolge/feedcreator.php

        /**
        * 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).
        *
        * @param   string   format   format the feed should comply to. Valid values are:
        *          "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM0.3".
        * @param 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()).
        * @param timeout int      optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour)
        */
   function useCached($format="RSS0.91", $filename="", $timeout=3600) {
          $this->_setFormat($format);
          $this->_feed->useCached($filename, $timeout);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
        * 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).
        *
        * @param   string   format   format the feed should comply to. Valid values are:
        *          "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM0.3".
        * @param 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()).
        * @param timeout int      optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour)
        */
/**
         * 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 [[#variable56101a20]]($format="RSS0.91",$filename="", [[#variable561019a0]]= [[#variable561019e0]]) {
  $this->_setFormat($format);
  $this->_feed-> [[#variable56101a20]]($filename, [[#variable561019a0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56101a20]]
useCached 
12[[#56101a20]]
saveFeed 
21[[#561019a0]]
$timeout 
22[[#561019a0]]
$displayContents 
31[[#561019e0]]
3600 
32[[#561019e0]]
TRUE