"Fossies" - the Fresh Open Source Software Archive

Member "libs/PHPCrawler/PHPCrawlerProcessReport.class.php" (8 Jan 2013, 1937 Bytes) of package /linux/www/SitemapCreator.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 /**
    3  * Contains summarizing information about a crawling-process after the process is finished.
    4  *
    5  * @package phpcrawl
    6  */
    7 class PHPCrawlerProcessReport
    8 {
    9   /**
   10    * The total number of links/URLs the crawler found and followed.
   11    *
   12    * @var int
   13    */
   14   public $links_followed = 0;
   15   
   16   /**
   17    * The total number of documents the crawler received.
   18    *
   19    * @var int
   20    */
   21   public $files_received = 0;
   22   
   23   /**
   24    * The total number of bytes the crawler received alltogether.
   25    *
   26    * @var int
   27    */
   28   public $bytes_received = 0;
   29   
   30   /**
   31    * The total time the crawling-process was running in seconds.
   32    *
   33    * @var float Proess-runtime in seconds.
   34    */
   35   public $process_runtime = 0;
   36   
   37   /**
   38    * The average data-throughput in bytes per second.
   39    *
   40    * @var float
   41    */
   42   public $data_throughput = 0;
   43   
   44   /**
   45    * Will be TRUE if the crawling-process stopped becaus the traffic-limit was reached.
   46    *
   47    * @var bool
   48    */
   49   public $traffic_limit_reached = false;
   50   
   51   /**
   52    * Will be TRUE if the page/file-limit was reached.
   53    *
   54    * @var bool
   55    */
   56   public $file_limit_reached = false;
   57   
   58   /**
   59    * Will be TRUE if the crawling-process stopped because the overridable function handleDocumentInfo() returned a negative value.
   60    *
   61    * @var bool
   62    */
   63   public $user_abort = false;
   64   
   65   /**
   66    * The peak memory-usage the crawling-process caused.
   67    *
   68    * @var int Memory-usage in bytes. May be NULL if PHP-version is lower than 5.2.0. 
   69    */
   70   public $memory_peak_usage;
   71   
   72   /**
   73    * Reason for the abortion of the crawling-process
   74    *
   75    * @var int One of the {@link PHPCrawlerAbortReasons}-constants
   76    */
   77   public $abort_reason;
   78   
   79   /**
   80    * Returns an array with all properties of this class.
   81    *
   82    * @return array
   83    * @internal
   84    */
   85   public function toArray()
   86   {
   87     return get_object_vars($this);
   88   }
   89 }
   90 ?>