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
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getFragment() public méthode

public getFragment ( ) : string
Résultat string fragment of the URI

getHost() public méthode

public getHost ( ) : string
Résultat string hostname of the URI

getPassword() public méthode

public getPassword ( ) : string
Résultat string password of the URI

getPath() public méthode

public getPath ( ) : string
Résultat string path of the URI

getPort() public méthode

public getPort ( ) : integer
Résultat integer port number of the URI

getQuery() public méthode

public getQuery ( ) : string
Résultat string query string of the URI

getScheme() public méthode

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

getUri() public méthode

public getUri ( ) : string
Résultat string URI

getUser() public méthode

public getUser ( ) : string
Résultat string username of the URI