public function parseFromString($url) {
		$urlData = parse_url($url);
		
		if (isset($urlData['scheme'])) {
			$this->scheme = $urlData['scheme'];
		}
		
		if (isset($urlData['host'])) {
			$this->host = $urlData['host'];
		}
		
		if (isset($urlData['port'])) {
			$this->port = $urlData['port'];
		}
		
		if (isset($urlData['user'])) {
			$this->username = $urlData['user'];
		}
		
		if (isset($urlData['pass'])) {
			$this->password = $urlData['pass'];
		}
		
		if (isset($urlData['path'])) {
			$this->path = $urlData['path'];
		}
		
		if (isset($urlData['fragment'])) {
			$this->fragment = $urlData['fragment'];
		}
		
		if (isset($urlData['query'])) {
			$this->queryRaw = $urlData['query'];
			
			parse_str($urlData['query'], $this->query);
		}
		
		return $this;
	}
public function parseFromString($url) {
		$urlData = parse_url($url);
		
		if (isset($urlData['scheme'])) {
			$this->scheme = $urlData['scheme'];
		}
		
		if (isset($urlData['host'])) {
			$this->host = $urlData['host'];
		}
		
		if (isset($urlData['port'])) {
			$this->port = $urlData['port'];
		}
		
		if (isset($urlData['user'])) {
			$this->username = $urlData['user'];
		}
		
		if (isset($urlData['pass'])) {
			$this->password = $urlData['pass'];
		}
		
		if (isset($urlData['path'])) {
			$this->path = $urlData['path'];
		}
		
		if (isset($urlData['fragment'])) {
			$this->fragment = $urlData['fragment'];
		}
		
		if (isset($urlData['query'])) {
			$this->queryRaw = $urlData['query'];
			
			parse_str($urlData['query'], $this->query);
		}
		
		return $this;
	}
public function parseFromString ( $ url ) { $ urlData = parse_url ( $ url ) ; if ( isset ( $ urlData [ 'scheme' ] ) ) { $ this -> scheme = $ urlData [ 'scheme' ] ; } if ( isset ( $ urlData [ 'host' ] ) ) { $ this -> host = $ urlData [ 'host' ] ; } if ( isset ( $ urlData [ 'port' ] ) ) { $ this -> port = $ urlData [ 'port' ] ; } if ( isset ( $ urlData [ 'user' ] ) ) { $ this -> username = $ urlData [ 'user' ] ; } if ( isset ( $ urlData [ 'pass' ] ) ) { $ this -> password = $ urlData [ 'pass' ] ; } if ( isset ( $ urlData [ 'path' ] ) ) { $ this -> path = $ urlData [ 'path' ] ; } if ( isset ( $ urlData [ 'fragment' ] ) ) { $ this -> fragment = $ urlData [ 'fragment' ] ; } if ( isset ( $ urlData [ 'query' ] ) ) { $ this -> queryRaw = $ urlData [ 'query' ] ; parse_str ( $ urlData [ 'query' ] , $ this -> query ) ; } return $ this ; }
Parse URL from the string

@param  string $url
@return Url
Parse URL from the string