Class to provide OAuth utility methods.
More...
|
| static array string | urlencode_rfc3986 (mixed $input) |
| | URL encode.
|
| static string | urldecode_rfc3986 (string $string) |
| | URL decode.
|
| static array | split_header (string $header, bool $only_allow_oauth_parameters=true) |
| | Utility function for turning the Authorization: header into parameters, has to do some unescaping.
|
| static array | get_headers () |
| | Helper to try to sort out headers for people who aren't running apache.
|
| static array | parse_parameters (?string $input) |
| | Parse parameters.
|
| static string | build_http_query (?array $params) |
| | Build HTTP query string.
|
| static array | array_merge_recursive (array $array1, array $array2) |
| | Recursively merge two arrays.
|
Class to provide OAuth utility methods.
- Copyright
- Andy Smith (http://oauth.googlecode.com/svn/code/php/)
- Version
- 2008-08-04
- Licence: https://opensource.org/licenses/MIT The MIT License
◆ array_merge_recursive()
| array array_merge_recursive |
( |
array | $array1, |
|
|
array | $array2 ) |
|
static |
Recursively merge two arrays.
- Parameters
-
| array | $array1 | First array |
| array | $array2 | Second array |
- Returns
- array
Referenced by OAuthRequest\from_request().
◆ build_http_query()
| string build_http_query |
( |
?array | $params | ) |
|
|
static |
◆ get_headers()
◆ parse_parameters()
| array parse_parameters |
( |
?string | $input | ) |
|
|
static |
◆ split_header()
| array split_header |
( |
string | $header, |
|
|
bool | $only_allow_oauth_parameters = true ) |
|
static |
Utility function for turning the Authorization: header into parameters, has to do some unescaping.
Can filter out any non-oauth parameters if needed (default behaviour) May 28th, 2010 - method updated to tjerk.meesters for a speed improvement. see http://code.google.com/p/oauth/issues/detail?id=163
- Parameters
-
| string | $header | Header value |
| bool | $only_allow_oauth_parameters | True if only OAuth parameters are allowed |
- Returns
- array
Referenced by OAuthRequest\from_request().
◆ urldecode_rfc3986()
| string urldecode_rfc3986 |
( |
string | $string | ) |
|
|
static |
URL decode.
This decode function isn't taking into consideration the above modifications to the encoding process. However, this method doesn't seem to be used anywhere so leaving it as is.
- Parameters
-
| string | $string | String to be decoded |
- Returns
- string
Referenced by get_headers().
◆ urlencode_rfc3986()
| array string urlencode_rfc3986 |
( |
mixed | $input | ) |
|
|
static |