## Class TUri

Description

TUri class

TUri represents a URI. Given a URI http://joe:whatever@example.com: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
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/THttpRequest.php (line 984)

    TComponent
       |
       --TUri

Method Summary
TUri __construct (string $uri)
string getFragment ()
string getHost ()
string getPassword ()
string getPath ()
integer getPort ()
string getQuery ()
string getScheme ()
string getUri ()
string getUser ()
Methods
Constructor __construct (line 1042)

Constructor.

Decomposes the specified URI into parts.

- access: public
- throws: TInvalidDataValueException if URI is of bad format

TUri __construct (string $uri)

- string $uri: URI to be represented

getFragment (line 1130)

- return: fragment of the URI
- access: public

string getFragment ()
getHost (line 1082)

- return: hostname of the URI
- access: public

string getHost ()
getPassword (line 1106)

- return: password of the URI
- access: public

string getPassword ()
getPath (line 1114)

- return: path of the URI
- access: public

string getPath ()
getPort (line 1090)

- return: port number of the URI
- access: public

integer getPort ()
getQuery (line 1122)

- return: query string of the URI
- access: public

string getQuery ()
getScheme (line 1074)

- return: scheme of the URI, such as 'http', 'https', 'ftp', etc.
- access: public

string getScheme ()
getUri (line 1066)

- return: URI
- access: public

string getUri ()
getUser (line 1098)

- return: username of the URI
- access: public

string getUser ()

#### Inherited Methods

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Sun, 04 Jun 2006 18:59:31 -0400 by phpDocumentor 1.3.0RC4