public function toString(array $parts = array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment'))
	{
		// Make sure the query is created
		$query = $this->getQuery();

		$uri = '';
		$uri .= in_array('scheme', $parts) ? (!empty($this->scheme) ? $this->scheme . '://' : '') : '';
		$uri .= in_array('user', $parts) ? $this->user : '';
		$uri .= in_array('pass', $parts) ? (!empty($this->pass) ? ':' : '') . $this->pass . (!empty($this->user) ? '@' : '') : '';
		$uri .= in_array('host', $parts) ? $this->host : '';
		$uri .= in_array('port', $parts) ? (!empty($this->port) ? ':' : '') . $this->port : '';
		$uri .= in_array('path', $parts) ? $this->path : '';
		$uri .= in_array('query', $parts) ? (!empty($query) ? '?' . $query : '') : '';
		$uri .= in_array('fragment', $parts) ? (!empty($this->fragment) ? '#' . $this->fragment : '') : '';

		return $uri;
	}
public function toString(array $parts = array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment'))
	{
		// Make sure the query is created
		$query = $this->getQuery();

		$uri = '';
		$uri .= in_array('scheme', $parts) ? (!empty($this->scheme) ? $this->scheme . '://' : '') : '';
		$uri .= in_array('user', $parts) ? $this->user : '';
		$uri .= in_array('pass', $parts) ? (!empty($this->pass) ? ':' : '') . $this->pass . (!empty($this->user) ? '@' : '') : '';
		$uri .= in_array('host', $parts) ? $this->host : '';
		$uri .= in_array('port', $parts) ? (!empty($this->port) ? ':' : '') . $this->port : '';
		$uri .= in_array('path', $parts) ? $this->path : '';
		$uri .= in_array('query', $parts) ? (!empty($query) ? '?' . $query : '') : '';
		$uri .= in_array('fragment', $parts) ? (!empty($this->fragment) ? '#' . $this->fragment : '') : '';

		return $uri;
	}
public function toString ( array $ parts = array ( 'scheme' , 'user' , 'pass' , 'host' , 'port' , 'path' , 'query' , 'fragment' ) ) { // Make sure the query is created $ query = $ this -> getQuery ( ) ; $ uri = '' ; $ uri .= in_array ( 'scheme' , $ parts ) ? ( ! empty ( $ this -> scheme ) ? $ this -> scheme . '://' : '' ) : '' ; $ uri .= in_array ( 'user' , $ parts ) ? $ this -> user : '' ; $ uri .= in_array ( 'pass' , $ parts ) ? ( ! empty ( $ this -> pass ) ? ':' : '' ) . $ this -> pass . ( ! empty ( $ this -> user ) ? '@' : '' ) : '' ; $ uri .= in_array ( 'host' , $ parts ) ? $ this -> host : '' ; $ uri .= in_array ( 'port' , $ parts ) ? ( ! empty ( $ this -> port ) ? ':' : '' ) . $ this -> port : '' ; $ uri .= in_array ( 'path' , $ parts ) ? $ this -> path : '' ; $ uri .= in_array ( 'query' , $ parts ) ? ( ! empty ( $ query ) ? '?' . $ query : '' ) : '' ; $ uri .= in_array ( 'fragment' , $ parts ) ? ( ! empty ( $ this -> fragment ) ? '#' . $ this -> fragment : '' ) : '' ; return $ uri ; }
Returns full uri string.

@param   array  $parts  An array specifying the parts to render.

@return  string  The rendered URI string.

@since   1.0
Returns full uri string .