| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 410 lignes (14 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Net_URL:: (11 méthodes):
Net_URL()
__construct()
getURL()
addQueryString()
removeQueryString()
addRawQueryString()
getQueryString()
_parseRawQuerystring()
resolvePath()
getStandardPort()
setProtocol()
| Net_URL($url = null, $useBrackets = true) X-Ref |
| PHP4 Constructor |
| __construct($url = null, $useBrackets = true) X-Ref |
| PHP5 Constructor Parses the given url and stores the various parts Defaults are used in certain cases param: string $url Optional URL param: bool $useBrackets Whether to use square brackets when |
| getURL() X-Ref |
| Returns full url return: string Full url |
| addQueryString($name, $value, $preencoded = false) X-Ref |
| Adds a querystring item param: string $name Name of item param: string $value Value of item param: bool $preencoded Whether value is urlencoded or not, default = not |
| removeQueryString($name) X-Ref |
| Removes a querystring item param: string $name Name of item |
| addRawQueryString($querystring) X-Ref |
| Sets the querystring to literally what you supply param: string $querystring The querystring data. Should be of the format foo=bar&x=y etc |
| getQueryString() X-Ref |
| Returns flat querystring return: string Querystring |
| _parseRawQuerystring($querystring) X-Ref |
| Parses raw querystring and returns an array of it param: string $querystring The querystring to parse return: array An array of the querystring data |
| resolvePath($path) X-Ref |
| 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. param: string $url URL path to resolve return: string The result |
| getStandardPort($scheme) X-Ref |
| Returns the standard port number for a protocol author: Philippe Jausions <Philippe.Jausions@11abacus.com> param: string $scheme The protocol to lookup return: integer Port number or NULL if no scheme matches |
| setProtocol($protocol, $port = null) X-Ref |
| Forces the URL to a particular protocol param: string $protocol Protocol to force the URL to param: integer $port Optional port (standard port is used by default) |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|