Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Static Public Member Functions | Data Fields | Static Protected Attributes
Zend_Oauth Class Reference
Inheritance diagram for Zend_Oauth:
Zend_Oauth_Consumer

Static Public Member Functions

static setHttpClient (Zend_Http_Client $httpClient)
 
static getHttpClient ()
 
static clearHttpClient ()
 

Data Fields

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'
 
const OPTIONS = 'OPTIONS'
 

Static Protected Attributes

static $httpClient = null
 

Detailed Description

Definition at line 31 of file Oauth.php.

Member Function Documentation

◆ clearHttpClient()

static clearHttpClient ( )
static

Simple mechanism to delete the entire singleton HTTP Client instance which forces an new instantiation for subsequent requests.

Returns
void

Definition at line 86 of file Oauth.php.

87  {
88  self::$httpClient = null;
89  }

◆ getHttpClient()

static getHttpClient ( )
static

Return the singleton instance of the HTTP Client. Note that the instance is reset and cleared of previous parameters and Authorization header values.

Returns
Zend_Http_Client

Definition at line 69 of file Oauth.php.

70  {
71  if (!isset(self::$httpClient)) {
72  self::$httpClient = new Zend_Http_Client;
73  } else {
74  self::$httpClient->setHeaders('Authorization', null);
75  self::$httpClient->resetParameters();
76  }
77  return self::$httpClient;
78  }
setHeaders($name, $value=null)
Definition: Client.php:433
static $httpClient
Definition: Oauth.php:48

◆ setHttpClient()

static setHttpClient ( Zend_Http_Client  $httpClient)
static

Allows the external environment to make Zend_Oauth use a specific Client instance.

Parameters
Zend_Http_Client$httpClient
Returns
void

Definition at line 57 of file Oauth.php.

58  {
59  self::$httpClient = $httpClient;
60  }
static $httpClient
Definition: Oauth.php:48

Field Documentation

◆ $httpClient

$httpClient = null
staticprotected

Definition at line 48 of file Oauth.php.

◆ DELETE

const DELETE = 'DELETE'

Definition at line 39 of file Oauth.php.

◆ GET

const GET = 'GET'

Definition at line 36 of file Oauth.php.

◆ HEAD

const HEAD = 'HEAD'

Definition at line 40 of file Oauth.php.

◆ OPTIONS

const OPTIONS = 'OPTIONS'

Definition at line 41 of file Oauth.php.

◆ POST

const POST = 'POST'

Definition at line 37 of file Oauth.php.

◆ PUT

const PUT = 'PUT'

Definition at line 38 of file Oauth.php.

◆ REQUEST_SCHEME_HEADER

const REQUEST_SCHEME_HEADER = 'header'

Definition at line 33 of file Oauth.php.

◆ REQUEST_SCHEME_POSTBODY

const REQUEST_SCHEME_POSTBODY = 'postbody'

Definition at line 34 of file Oauth.php.

◆ REQUEST_SCHEME_QUERYSTRING

const REQUEST_SCHEME_QUERYSTRING = 'querystring'

Definition at line 35 of file Oauth.php.


The documentation for this class was generated from the following file: