"Fossies" - the Fresh Open Source Software Archive

Member "libs/PHPCrawler/PHPCrawlerURLDescriptor.class.php" (8 Jan 2013, 1442 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  * Describes a URL within the PHPCrawl-system.
    4  *
    5  * @package phpcrawl
    6  */
    7 class PHPCrawlerURLDescriptor
    8 {
    9   /**
   10    * The complete, full qualified and normalized URL
   11    *
   12    * @var string
   13    */
   14   public $url_rebuild = null;
   15   
   16   /**
   17    * The raw link to this URL as it was found in the HTML-source, i.e. "../dunno/index.php"
   18    */
   19   public $link_raw = null;
   20   
   21   /**
   22    * The html-codepart that contained the link to this URL, i.e. "<a href="../foo.html">LINKTEXT</a>"
   23    */
   24   public $linkcode = null;
   25   
   26   /**
   27    * The linktext or html-code the link to this URL was layed over.
   28    */
   29   public $linktext = null;
   30   
   31   /**
   32    * The URL of the page that contained the link to the URL described here.
   33    *
   34    * @var string
   35    */
   36   public $refering_url;
   37   
   38   /**
   39    * Flag indicating whether this URL was target of an HTTP-redirect.
   40    *
   41    * @var string
   42    */
   43   public $is_redirect_url = false;
   44   
   45   /**
   46    * Initiates an URL-descriptor
   47    *
   48    * @internal
   49    */
   50   public function __construct($url_rebuild, $link_raw = null, $linkcode = null, $linktext = null, $refering_url = null)
   51   {
   52     $this->url_rebuild = $url_rebuild;
   53     
   54     if (!empty($link_raw)) $this->link_raw = $link_raw;
   55     if (!empty($linkcode)) $this->linkcode = $linkcode;
   56     if (!empty($linktext)) $this->linktext = $linktext;
   57     if (!empty($refering_url)) $this->refering_url = $refering_url;
   58   }  
   59 }
   60 ?>