Class: Microsoft_Uri_Http
Source Location: /Uri/Http.php
Microsoft_Uri
|
--Microsoft_Uri_Http
HTTP(S) URI handler
Author(s):
Copyright:
- Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
static method fromString [line 165]
Creates a Microsoft_Uri_Http from the given string
Tags:
Parameters:
constructor __construct [line 111]
Microsoft_Uri_Http __construct(
string
$scheme, [string
$schemeSpecific = ''])
|
|
Constructor accepts a string $scheme (e.g., http, https) and a scheme-specific part of the URI (e.g., example.com/path/to/resource?query=param#fragment)
Tags:
Overrides Microsoft_Uri::__construct() (Microsoft_Uri and its subclasses cannot be instantiated directly.)
Parameters:
method addReplaceQueryParameters [line 641]
string addReplaceQueryParameters(
$queryParams)
|
|
Add or replace params in the query string for the current URI, and return the old query.
Tags:
Parameters:
method getFragment [line 706]
string|false getFragment(
)
|
|
Returns the fragment portion of the URL (after #), or FALSE if none.
Tags:
method getHost [line 417]
Returns the domain or host IP portion of the URL, or FALSE if none.
Tags:
method getPassword [line 350]
Returns the password portion of the URL, or FALSE if none.
Tags:
method getPath [line 521]
Returns the path and filename portion of the URL, or FALSE if none.
Tags:
method getPort [line 469]
Returns the TCP port, or FALSE if none.
Tags:
method getQuery [line 581]
Returns the query portion of the URL (after ?), or FALSE if none.
Tags:
method getQueryAsArray [line 593]
Returns the query portion of the URL (after ?) as a key-value-array. If the query is empty an empty array is returned
Tags:
method getUri [line 242]
Returns a URI based on current values of the instance variables. If any part of the URI does not pass validation, then an exception is thrown.
Tags:
Overrides Microsoft_Uri::getUri() (Return a string representation of this URI.)
method getUsername [line 288]
Returns the username portion of the URL, or FALSE if none.
Tags:
method removeQueryParameters [line 654]
string removeQueryParameters(
$queryParamKeys)
|
|
Remove params in the query string for the current URI, and return the old query.
Tags:
Parameters:
method setFragment [line 749]
string setFragment(
string
$fragment)
|
|
Sets the fragment for the current URI, and returns the old fragment
Tags:
Parameters:
method setHost [line 451]
string setHost(
string
$host)
|
|
Sets the host for the current URI, and returns the old host
Tags:
Parameters:
method setPassword [line 399]
string setPassword(
string
$password)
|
|
Sets the password for the current URI, and returns the old password
Tags:
Parameters:
method setPath [line 563]
string setPath(
string
$path)
|
|
Sets the path for the current URI, and returns the old path
Tags:
Parameters:
method setPort [line 503]
string setPort(
string
$port)
|
|
Sets the port for the current URI, and returns the old port
Tags:
Parameters:
method setQuery [line 668]
string setQuery(
string|array
$query)
|
|
Set the query string for the current URI, and return the old query string This method accepts both strings and arrays.
Tags:
Parameters:
method setUsername [line 332]
string setUsername(
string
$username)
|
|
Sets the username for the current URI, and returns the old username
Tags:
Parameters:
method valid [line 271]
Validate the current URI from the instance variables. Returns true if and only if all parts pass validation.
Tags:
Overrides Microsoft_Uri::valid() (Returns TRUE if this URI is valid, or FALSE otherwise.)
method validateFragment [line 720]
boolean validateFragment(
[string
$fragment = null])
|
|
Returns true if and only if the fragment passes validation. If no fragment is passed, then the fragment contained in the instance variable is used.
Tags:
Parameters:
method validateHost [line 430]
boolean validateHost(
[string
$host = null])
|
|
Returns true if and only if the host string passes validation. If no host is passed, then the host contained in the instance variable is used.
Tags:
Parameters:
method validatePassword [line 364]
boolean validatePassword(
[string
$password = null])
|
|
Returns true if and only if the password passes validation. If no password is passed, then the password contained in the instance variable is used.
Tags:
Parameters:
method validatePath [line 534]
boolean validatePath(
[string
$path = null])
|
|
Returns true if and only if the path string passes validation. If no path is passed, then the path contained in the instance variable is used.
Tags:
Parameters:
method validatePort [line 481]
boolean validatePort(
[string
$port = null])
|
|
Returns true if and only if the TCP port string passes validation. If no port is passed, then the port contained in the instance variable is used.
Tags:
Parameters:
method validateQuery [line 612]
boolean validateQuery(
[string
$query = null])
|
|
Returns true if and only if the query string passes validation. If no query is passed, then the query string contained in the instance variable is used.
Tags:
Parameters:
method validateUsername [line 302]
boolean validateUsername(
[string
$username = null])
|
|
Returns true if and only if the username passes validation. If no username is passed, then the username contained in the instance variable is used.
Tags:
Parameters:
method _parseUri [line 193]
void _parseUri(
string
$schemeSpecific)
|
|
Parse the scheme-specific portion of the URI and place its parts into instance variables.
Tags:
Parameters:
Class Constants
|
|