Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
TOKEN_PARAM_KEY = 'oauth_token'
Details TOKEN_SECRET_PARAM_KEY = 'oauth_token_secret'
Details TOKEN_PARAM_CALLBACK_CONFIRMED = 'oauth_callback_confirmed'
DetailsZend_Oauth_Http_Utility $_httpUtility = 'null'
Detailsarray $_params = 'array'Token parameters
DetailsZend_Http_Response $_response = 'null'OAuth response object
Details__construct(
null|Zend_Http_Response $response
=
null, null|Zend_Oauth_Http_Utility $utility
=
null
)
:
voidConstructor; basic setup for any Token subclass.
Details__get(
$key
)
:
stringGeneric accessor to enable access as public properties.
Details__set(
string $key, string $value
)
:
voidGeneric mutator to enable access as public properties.
Details__sleep(
)
:
Limit serialisation stored data to the parameters
Details__toString(
)
:
stringConvert Token to a string, specifically a raw encoded query string.
Aliases to self::toString()
Details__wakeup(
)
:
After serialisation, re-instantiate a HTTP utility class for use
Details_parseParameters(
Zend_Http_Response $response
)
:
arrayParse a HTTP response body and collect returned parameters as raw url decoded key-value pairs in an associative array.
DetailsgetParam(
string $key
)
:
mixedGet the value for a parameter (e.g. token secret or other).
DetailsgetResponse(
)
:
Zend_Http_ResponseReturn the HTTP response object used to initialise this instance.
DetailsgetToken(
)
:
stringGets the value for a Token.
DetailsgetTokenSecret(
)
:
stringRetrieve this Token's secret which may be used when signing requests with this Token.
DetailsisValid(
)
:
boolAttempts to validate the Token parsed from the HTTP response - really it's just very basic existence checks which are minimal.
DetailssetParam(
string $key, string $value
)
:
Zend_Oauth_TokenSets the value for a parameter (e.g. token secret or other) and run a simple filter to remove any trailing newlines.
DetailssetParams(
array $params
)
:
Zend_Oauth_TokenSets the value for some parameters (e.g. token secret or other) and run a simple filter to remove any trailing newlines.
DetailssetToken(
string $token
)
:
Zend_Oauth_TokenSets the value for a Token.
DetailssetTokenSecret(
string $secret
)
:
Zend_Oauth_TokenSets the value for the this Token's secret which may be used when signing requests with this Token.
DetailstoString(
)
:
stringConvert Token to a string, specifically a raw encoded query string.
Details