\Zend_Oauth
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Oauth
{
- // constants
- const REQUEST_SCHEME_HEADER = 'header';
- const REQUEST_SCHEME_POSTBODY = 'postbody';
- const REQUEST_SCHEME_QUERYSTRING = 'querystring';
- const GET = 'GET';
- const POST = 'POST';
- const PUT = 'PUT';
- const DELETE = 'DELETE';
- const HEAD = 'HEAD';
- // members
- protected static Zend_Http_Client $httpClient = NULL;
- // methods
- public static void setHttpClient()
- public static Zend_Http_Client getHttpClient()
- public static void clearHttpClient()
Constants
Name | Value |
---|---|
REQUEST_SCHEME_HEADER | 'header' |
REQUEST_SCHEME_POSTBODY | 'postbody' |
REQUEST_SCHEME_QUERYSTRING | 'querystring' |
GET | 'GET' |
POST | 'POST' |
PUT | 'PUT' |
DELETE | 'DELETE' |
HEAD | 'HEAD' |
Members
protected
- $httpClient
—
Zend_Http_Client
Singleton instance if required of the HTTP client
Methods
public
- clearHttpClient() — Simple mechanism to delete the entire singleton HTTP Client instance which forces an new instantiation for subsequent requests.
- getHttpClient() — Return the singleton instance of the HTTP Client. Note that the instance is reset and cleared of previous parameters and Authorization header values.
- setHttpClient() — Allows the external environment to make Zend_Oauth use a specific Client instance.