Detailed Description
Definition at line 41 of file Http.php.
Constructor & Destructor Documentation
| __construct |
( |
$ |
scheme, |
|
|
$ |
schemeSpecific = '' |
|
) |
| [protected] |
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)
- Parameters:
-
| string | $scheme | The scheme of the URI |
| string | $schemeSpecific | The scheme-specific part of the URI |
- Exceptions:
-
Reimplemented from Zend_Uri.
Definition at line 116 of file Http.php.
Member Function Documentation
Parse the scheme-specific portion of the URI and place its parts into instance variables.
- Parameters:
-
| string | $schemeSpecific | The scheme-specific portion to parse |
- Exceptions:
-
- Returns:
- void
Definition at line 198 of file Http.php.
Add or replace params in the query string for the current URI, and return the old query.
- Parameters:
-
- Returns:
- string Old query string
Definition at line 649 of file Http.php.
Returns the fragment portion of the URL (after #), or FALSE if none.
- Returns:
- string|false
Definition at line 714 of file Http.php.
Returns the domain or host IP portion of the URL, or FALSE if none.
- Returns:
- string
Definition at line 422 of file Http.php.
Returns the password portion of the URL, or FALSE if none.
- Returns:
- string
Definition at line 355 of file Http.php.
Returns the path and filename portion of the URL, or FALSE if none.
- Returns:
- string
Definition at line 529 of file Http.php.
Returns the TCP port, or FALSE if none.
- Returns:
- string
Definition at line 477 of file Http.php.
Returns the query portion of the URL (after ?), or FALSE if none.
- Returns:
- string
Definition at line 589 of file Http.php.
Returns the query portion of the URL (after ?) as a key-value-array. If the query is empty an empty array is returned
- Returns:
- array
Definition at line 601 of file Http.php.
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.
- Exceptions:
-
- Returns:
- string
Reimplemented from Zend_Uri.
Definition at line 247 of file Http.php.
Returns the username portion of the URL, or FALSE if none.
- Returns:
- string
Definition at line 293 of file Http.php.
Remove params in the query string for the current URI, and return the old query.
- Parameters:
-
- Returns:
- string Old query string
Definition at line 662 of file Http.php.
Sets the fragment for the current URI, and returns the old fragment
- Parameters:
-
| string | $fragment | Fragment of the current URI |
- Exceptions:
-
- Returns:
- string
Definition at line 757 of file Http.php.
Sets the host for the current URI, and returns the old host
- Parameters:
-
- Exceptions:
-
- Returns:
- string
Definition at line 459 of file Http.php.
Sets the password for the current URI, and returns the old password
- Parameters:
-
| string | $password | The HTTP password |
- Exceptions:
-
- Returns:
- string
Definition at line 404 of file Http.php.
Sets the path for the current URI, and returns the old path
- Parameters:
-
- Exceptions:
-
- Returns:
- string
Definition at line 571 of file Http.php.
Sets the port for the current URI, and returns the old port
- Parameters:
-
- Exceptions:
-
- Returns:
- string
Definition at line 511 of file Http.php.
Set the query string for the current URI, and return the old query string This method accepts both strings and arrays.
- Parameters:
-
| string | array | $query | The query string or array |
- Exceptions:
-
- Returns:
- string Old query string
Definition at line 676 of file Http.php.
Sets the username for the current URI, and returns the old username
- Parameters:
-
| string | $username | The HTTP username |
- Exceptions:
-
- Returns:
- string
Definition at line 337 of file Http.php.
Validate the current URI from the instance variables. Returns true if and only if all parts pass validation.
- Returns:
- boolean
Reimplemented from Zend_Uri.
Definition at line 276 of file Http.php.
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.
- Parameters:
-
| string | $fragment | Fragment of an URI |
- Exceptions:
-
- Returns:
- boolean http://www.faqs.org/rfcs/rfc2396.html
Definition at line 728 of file Http.php.
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.
- Parameters:
-
- Returns:
- boolean Zend_Filter
Definition at line 435 of file Http.php.
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.
- Parameters:
-
| string | $password | The HTTP password |
- Exceptions:
-
- Returns:
- boolean http://www.faqs.org/rfcs/rfc2396.html
Definition at line 369 of file Http.php.
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.
- Parameters:
-
- Exceptions:
-
- Returns:
- boolean
Definition at line 542 of file Http.php.
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.
- Parameters:
-
- Returns:
- boolean
Definition at line 489 of file Http.php.
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.
- Parameters:
-
| string | $query | The query to validate |
- Exceptions:
-
- Returns:
- boolean http://www.faqs.org/rfcs/rfc2396.html
Definition at line 620 of file Http.php.
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.
- Parameters:
-
| string | $username | The HTTP username |
- Exceptions:
-
- Returns:
- boolean http://www.faqs.org/rfcs/rfc2396.html
Definition at line 307 of file Http.php.
Field Documentation
$_fragment = '' [protected] |
$_password = '' [protected] |
$_regex = array() [protected] |
$_username = '' [protected] |
Character classes for validation regular expressions
Definition at line 46 of file Http.php.
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/zend/Zend/Uri/Http.php