## 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 972)

    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 1030)

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 1118)

- return: fragment of the URI
- access: public

string getFragment ()
getHost (line 1070)

- return: hostname of the URI
- access: public

string getHost ()
getPassword (line 1094)

- return: password of the URI
- access: public

string getPassword ()
getPath (line 1102)

- return: path of the URI
- access: public

string getPath ()
getPort (line 1078)

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

integer getPort ()
getQuery (line 1110)

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

string getQuery ()
getScheme (line 1062)

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

string getScheme ()
getUri (line 1054)

- return: URI
- access: public

string getUri ()
getUser (line 1086)

- 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 Mon, 01 May 2006 23:03:39 -0400 by phpDocumentor 1.3.0RC4