Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Http_Response $response=null, Zend_Oauth_Http_Utility $utility=null) | |
Constructor; basic setup for any Token subclass. | |
isValid () | |
Attempts to validate the Token parsed from the HTTP response - really it's just very basic existence checks which are minimal. | |
getResponse () | |
Return the HTTP response object used to initialise this instance. | |
setTokenSecret ($secret) | |
Sets the value for the this Token's secret which may be used when signing requests with this Token. | |
getTokenSecret () | |
Retrieve this Token's secret which may be used when signing requests with this Token. | |
setParam ($key, $value) | |
Sets the value for a parameter (e.g. | |
setParams (array $params) | |
Sets the value for some parameters (e.g. | |
getParam ($key) | |
Get the value for a parameter (e.g. | |
setToken ($token) | |
Sets the value for a Token. | |
getToken () | |
Gets the value for a Token. | |
__get ($key) | |
Generic accessor to enable access as public properties. | |
__set ($key, $value) | |
Generic mutator to enable access as public properties. | |
toString () | |
Convert Token to a string, specifically a raw encoded query string. | |
__toString () | |
Convert Token to a string, specifically a raw encoded query string. | |
__sleep () | |
Limit serialisation stored data to the parameters. | |
__wakeup () | |
After serialisation, re-instantiate a HTTP utility class for use. | |
Public Attributes | |
const | TOKEN_PARAM_KEY = 'oauth_token' |
@+ Token constants | |
const | TOKEN_SECRET_PARAM_KEY = 'oauth_token_secret' |
const | TOKEN_PARAM_CALLBACK_CONFIRMED = 'oauth_callback_confirmed' |
Protected Member Functions | |
_parseParameters (Zend_Http_Response $response) | |
Parse a HTTP response body and collect returned parameters as raw url decoded key-value pairs in an associative array. | |
Protected Attributes | |
$_params = array() | |
$_response = null | |
$_httpUtility = null | |
__construct | ( | Zend_Http_Response | $response = null , |
Zend_Oauth_Http_Utility | $utility = null |
||
) |
Constructor; basic setup for any Token subclass.
null | Zend_Http_Response | $response | |
null | Zend_Oauth_Http_Utility | $utility |
__get | ( | $key | ) |
Generic accessor to enable access as public properties.
__set | ( | $key, | |
$value | |||
) |
Generic mutator to enable access as public properties.
string | $key | |
string | $value |
__sleep | ( | ) |
Limit serialisation stored data to the parameters.
__toString | ( | ) |
Convert Token to a string, specifically a raw encoded query string.
Aliases to self::toString()
__wakeup | ( | ) |
After serialisation, re-instantiate a HTTP utility class for use.
|
protected |
Parse a HTTP response body and collect returned parameters as raw url decoded key-value pairs in an associative array.
Zend_Http_Response | $response |
getParam | ( | $key | ) |
Get the value for a parameter (e.g.
token secret or other).
string | $key |
getResponse | ( | ) |
Return the HTTP response object used to initialise this instance.
getToken | ( | ) |
Gets the value for a Token.
getTokenSecret | ( | ) |
Retrieve this Token's secret which may be used when signing requests with this Token.
isValid | ( | ) |
Attempts to validate the Token parsed from the HTTP response - really it's just very basic existence checks which are minimal.
setParam | ( | $key, | |
$value | |||
) |
Sets the value for a parameter (e.g.
token secret or other) and run a simple filter to remove any trailing newlines.
string | $key | |
string | $value |
setParams | ( | array | $params | ) |
Sets the value for some parameters (e.g.
token secret or other) and run a simple filter to remove any trailing newlines.
array | $params |
setToken | ( | $token | ) |
setTokenSecret | ( | $secret | ) |
Sets the value for the this Token's secret which may be used when signing requests with this Token.
string | $secret |
toString | ( | ) |
Convert Token to a string, specifically a raw encoded query string.
|
protected |
|
protected |
|
protected |
const TOKEN_PARAM_CALLBACK_CONFIRMED = 'oauth_callback_confirmed' |
const TOKEN_PARAM_KEY = 'oauth_token' |
@+ Token constants
const TOKEN_SECRET_PARAM_KEY = 'oauth_token_secret' |