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'
TOKEN_SECRET_PARAM_KEY = 'oauth_token_secret'
TOKEN_PARAM_CALLBACK_CONFIRMED = 'oauth_callback_confirmed'
Zend_Oauth_Http_Utility $_httpUtility = 'null'
array $_params = 'array'
Token parameters
Zend_Http_Response $_response = 'null'
OAuth response object
__construct(
null|Zend_Http_Response $response
=
null, null|Zend_Oauth_Http_Utility $utility
=
null
)
:
void
Constructor; basic setup for any Token subclass.
__get(
$key
)
:
string
Generic accessor to enable access as public properties.
__set(
string $key, string $value
)
:
void
Generic mutator to enable access as public properties.
__sleep(
)
:
Limit serialisation stored data to the parameters
__toString(
)
:
string
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
_parseParameters(
Zend_Http_Response $response
)
:
array
Parse a HTTP response body and collect returned parameters as raw url decoded key-value pairs in an associative array.
getParam(
string $key
)
:
mixed
Get the value for a parameter (e.g. token secret or other).
getResponse(
)
:
Zend_Http_Response
Return the HTTP response object used to initialise this instance.
getToken(
)
:
string
Gets the value for a Token.
getTokenSecret(
)
:
string
Retrieve this Token's secret which may be used when signing requests with this Token.
isValid(
)
:
bool
Attempts to validate the Token parsed from the HTTP response - really it's just very basic existence checks which are minimal.
setParam(
string $key, string $value
)
:
Zend_Oauth_Token
Sets the value for a parameter (e.g. token secret or other) and run a simple filter to remove any trailing newlines.
setParams(
array $params
)
:
Zend_Oauth_Token
Sets the value for some parameters (e.g. token secret or other) and run a simple filter to remove any trailing newlines.
setToken(
string $token
)
:
Zend_Oauth_Token
Sets the value for a Token.
setTokenSecret(
string $secret
)
:
Zend_Oauth_Token
Sets the value for the this Token's secret which may be used when signing requests with this Token.
toString(
)
:
string
Convert Token to a string, specifically a raw encoded query string.