Net_URL| Variable Summary | |
|---|---|
| string | $anchor |
| string | $host |
| string | $password |
| string | $path |
| integer | $port |
| string | $protocol |
| array | $querystring |
| string | $url |
| bool | $useBrackets |
| string | $username |
| Method Summary | |
|---|---|
| Net_URL | __construct ([string $url = null] , [bool $useBrackets = true] ) |
| Net_URL | Net_URL ([ $url = null] , [ $useBrackets = true] ) |
| void | addQueryString (string $name, string $value, [bool $preencoded = false] ) |
| void | addRawQueryString (string $querystring) |
| string | getQueryString () |
| integer | getStandardPort (string $scheme) |
| string | getURL () |
| void | removeQueryString (string $name) |
| string | resolvePath ( $path, string $url) |
| void | setProtocol (string $protocol, [integer $port = null] ) |
Anchor
Host
Password
Path
Port
Protocol
Query string
Full url
Whether to use []
Username
PHP5 Constructor Parses the given url and stores the various parts Defaults are used in certain cases
PHP4 Constructor
Adds a querystring item
Sets the querystring to literally what you supply
Returns flat querystring
Returns the standard port number for a protocol
Returns full url
Removes a querystring item
Resolves //, ../ and ./ from a path and returns the result. Eg: /foo/bar/../boo.php => /foo/boo.php /foo/bar/../../boo.php => /boo.php /foo/bar/.././/boo.php => /foo/boo.php This method can also be called statically.
Forces the URL to a particular protocol
Documentation generated on 2009-01-06 at 01:01 by phpDocumentor 1.4.1