libs/PHPCrawlerUrlPartsDescriptor.class.php
public static function fromURL($url)
  {
    $parts = PHPCrawlerUtils::splitURL($url);
    
    $tmp = new PHPCrawlerUrlPartsDescriptor();
    
    $tmp->protocol = $parts["protocol"];
    $tmp->host = $parts["host"];
    $tmp->path = $parts["path"];
    $tmp->file = $parts["file"];
    $tmp->domain = $parts["domain"];
    $tmp->port = $parts["port"];
    $tmp->auth_username = $parts["auth_username"];
    $tmp->auth_password = $parts["auth_password"];
    
    return $tmp;
  }
public static function fromURL($url)
  {
    $parts = PHPCrawlerUtils::splitURL($url);
    
    $tmp = new PHPCrawlerUrlPartsDescriptor();
    
    $tmp->protocol = $parts["protocol"];
    $tmp->host = $parts["host"];
    $tmp->path = $parts["path"];
    $tmp->file = $parts["file"];
    $tmp->domain = $parts["domain"];
    $tmp->port = $parts["port"];
    $tmp->auth_username = $parts["auth_username"];
    $tmp->auth_password = $parts["auth_password"];
    
    return $tmp;
  }
Returns the PHPCrawlerUrlPartsDescriptor-object for the given URL.

@return PHPCrawlerUrlPartsDescriptor