public function createFormUrl($url)
    {
        $urlParts = parse_url($url);

        $scheme = isset($urlParts['scheme']) ? $urlParts['scheme'] : '';
        $user = isset($urlParts['user']) ? $urlParts['user'] : '';
        $password = isset($urlParts['pass']) ? $urlParts['pass'] : '';
        $host = isset($urlParts['host']) ? $urlParts['host'] : '';
        $port = isset($urlParts['port']) ? $urlParts['port'] : null;
        $path = isset($urlParts['path']) ? $urlParts['path'] : '';
        $query = isset($urlParts['query']) ? $urlParts['query'] : '';
        $fragment = isset($urlParts['fragment']) ? $urlParts['fragment'] : '';

        $this->setUri($scheme, $host, $port, $path, $query, $fragment, $user, $password);

        return $this;
    }
public function createFormUrl($url)
    {
        $urlParts = parse_url($url);

        $scheme = isset($urlParts['scheme']) ? $urlParts['scheme'] : '';
        $user = isset($urlParts['user']) ? $urlParts['user'] : '';
        $password = isset($urlParts['pass']) ? $urlParts['pass'] : '';
        $host = isset($urlParts['host']) ? $urlParts['host'] : '';
        $port = isset($urlParts['port']) ? $urlParts['port'] : null;
        $path = isset($urlParts['path']) ? $urlParts['path'] : '';
        $query = isset($urlParts['query']) ? $urlParts['query'] : '';
        $fragment = isset($urlParts['fragment']) ? $urlParts['fragment'] : '';

        $this->setUri($scheme, $host, $port, $path, $query, $fragment, $user, $password);

        return $this;
    }
public function createFormUrl ( $ url ) { $ urlParts = parse_url ( $ url ) ; $ scheme = isset ( $ urlParts [ 'scheme' ] ) ? $ urlParts [ 'scheme' ] : '' ; $ user = isset ( $ urlParts [ 'user' ] ) ? $ urlParts [ 'user' ] : '' ; $ password = isset ( $ urlParts [ 'pass' ] ) ? $ urlParts [ 'pass' ] : '' ; $ host = isset ( $ urlParts [ 'host' ] ) ? $ urlParts [ 'host' ] : '' ; $ port = isset ( $ urlParts [ 'port' ] ) ? $ urlParts [ 'port' ] : null ; $ path = isset ( $ urlParts [ 'path' ] ) ? $ urlParts [ 'path' ] : '' ; $ query = isset ( $ urlParts [ 'query' ] ) ? $ urlParts [ 'query' ] : '' ; $ fragment = isset ( $ urlParts [ 'fragment' ] ) ? $ urlParts [ 'fragment' ] : '' ; $ this -> setUri ( $ scheme , $ host , $ port , $ path , $ query , $ fragment , $ user , $ password ) ; return $ this ; }
Get the scheme component of the URL.

@param (string) $url valid url

@since 3.0.0

@return object
Get the scheme component of the URL .