| [ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 485 lines (15 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Net_URL:: (14 methods):
Net_URL()
__construct()
initialize()
getURL()
addQueryString()
removeQueryString()
addRawQueryString()
getQueryString()
_parseRawQuerystring()
resolvePath()
getStandardPort()
setProtocol()
setOption()
getOption()
| 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 |
| initialize() X-Ref |
| No description |
| getURL() X-Ref |
| Returns full url return: string Full url |
| addQueryString($name, $value, $preencoded = false) X-Ref |
| Adds or updates a querystring item (URL parameter). Automatically encodes parameters with rawurlencode() if $preencoded is false. You can pass an array to $value, it gets mapped via [] in the URL if $this->useBrackets is activated. 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 $path URL path to resolve return: string The result |
| getStandardPort($scheme) X-Ref |
| Returns the standard port number for a protocol author: Philippe Jausions <[email protected]> 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) |
| setOption($optionName, $value) X-Ref |
| Set an option This function set an option to be used thorough the script. param: string $optionName The optionname to set param: string $value The value of this option. |
| getOption($optionName) X-Ref |
| Get an option This function gets an option from the $this->options array and return it's value. param: string $opionName The name of the option to retrieve |
| Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |