PHP Class Prado\Web\TUri

TUri represents a URI. Given a URI http://joe:[email protected]:8080/path/to/script.php?param=value#anchor it will be decomposed as follows, - scheme: http - host: example.com - port: 8080 - user: joe - password: whatever - path: /path/to/script.php - query: param=value - fragment: anchor
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TComponent
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( $uri ) Constructor.
getFragment ( ) : string
getHost ( ) : string
getPassword ( ) : string
getPath ( ) : string
getPort ( ) : integer
getQuery ( ) : string
getScheme ( ) : string
getUri ( ) : string
getUser ( ) : string

Method Details

__construct() public method

Decomposes the specified URI into parts.
public __construct ( $uri )

getFragment() public method

public getFragment ( ) : string
return string fragment of the URI

getHost() public method

public getHost ( ) : string
return string hostname of the URI

getPassword() public method

public getPassword ( ) : string
return string password of the URI

getPath() public method

public getPath ( ) : string
return string path of the URI

getPort() public method

public getPort ( ) : integer
return integer port number of the URI

getQuery() public method

public getQuery ( ) : string
return string query string of the URI

getScheme() public method

public getScheme ( ) : string
return string scheme of the URI, such as 'http', 'https', 'ftp', etc.

getUri() public method

public getUri ( ) : string
return string URI

getUser() public method

public getUser ( ) : string
return string username of the URI