public function Url::getParts

Get the parts of the URL as an array

Return value

array

1 call to Url::getParts()
Url::__toString in drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php
Returns the URL as a URL string

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php, line 159

Class

Url
Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.

Namespace

Guzzle\Http

Code

public function getParts() {
  return array(
    'scheme' => $this->scheme,
    'user' => $this->username,
    'pass' => $this->password,
    'host' => $this->host,
    'port' => $this->port,
    'path' => $this
      ->getPath(),
    'query' => (string) $this->query,
    'fragment' => $this->fragment,
    'query_prefix' => $this->query
      ->getPrefix(),
  );
}