thirdparty/Zend/Uri/Http.php
public function getUri()
    {
        if ($this->valid() === false) {
            require_once 'Zend/Uri/Exception.php';
            throw new Zend_Uri_Exception('One or more parts of the URI are invalid');
        }

        $password = strlen($this->_password) > 0 ? ":$this->_password" : '';
        $auth     = strlen($this->_username) > 0 ? "$this->_username$password@" : '';
        $port     = strlen($this->_port) > 0 ? ":$this->_port" : '';
        $query    = strlen($this->_query) > 0 ? "?$this->_query" : '';
        $fragment = strlen($this->_fragment) > 0 ? "#$this->_fragment" : '';

        return $this->_scheme
             . '://'
             . $auth
             . $this->_host
             . $port
             . $this->_path
             . $query
             . $fragment;
    }
public function getUri()
    {
        if ($this->valid() === false) {
            require_once 'Zend/Uri/Exception.php';
            throw new Zend_Uri_Exception('One or more parts of the URI are invalid');
        }

        $password = strlen($this->_password) > 0 ? ":$this->_password" : '';
        $auth     = strlen($this->_username) > 0 ? "$this->_username$password@" : '';
        $port     = strlen($this->_port) > 0 ? ":$this->_port" : '';
        $query    = strlen($this->_query) > 0 ? "?$this->_query" : '';
        $fragment = strlen($this->_fragment) > 0 ? "#$this->_fragment" : '';

        return $this->_scheme
             . '://'
             . $auth
             . $this->_host
             . $port
             . $this->_path
             . $query
             . $fragment;
    }
public function getUri ( ) { if ( $ this -> valid ( ) === false ) { require_once 'Zend/Uri/Exception.php' ; throw new Zend_Uri_Exception ( 'One or more parts of the URI are invalid' ) ; } $ password = strlen ( $ this -> _password ) > 0 ? ":$this->_password" : '' ; $ auth = strlen ( $ this -> _username ) > 0 ? "$this->_username$password@" : '' ; $ port = strlen ( $ this -> _port ) > 0 ? ":$this->_port" : '' ; $ query = strlen ( $ this -> _query ) > 0 ? "?$this->_query" : '' ; $ fragment = strlen ( $ this -> _fragment ) > 0 ? "#$this->_fragment" : '' ; return $ this -> _scheme . '://' . $ auth . $ this -> _host . $ port . $ this -> _path . $ query . $ fragment ; }
Returns a URI based on current values of the instance variables. If any
part of the URI does not pass validation, then an exception is thrown.

@throws Zend_Uri_Exception When one or more parts of the URI are invalid
@return string
Returns a URI based on current values of the instance variables . If any part of the URI does not pass validation then an exception is thrown .