Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Oauth
Token
Access.php
Go to the documentation of this file.
1
<?php
23
#require_once 'Zend/Oauth/Token.php';
24
26
#require_once 'Zend/Oauth/Http.php';
27
29
#require_once 'Zend/Uri/Http.php';
30
32
#require_once 'Zend/Oauth/Client.php';
33
40
class
Zend_Oauth_Token_Access
extends
Zend_Oauth_Token
41
{
51
public
function
toHeader
(
52
$url
,
Zend_Oauth_Config_ConfigInterface
$config
, array $customParams =
null
, $realm =
null
53
) {
54
if
(!
Zend_Uri::check
(
$url
)) {
55
#require_once 'Zend/Oauth/Exception.php';
56
throw
new
Zend_Oauth_Exception
(
57
'\''
.
$url
.
'\'
is not a valid URI
'
58
);
59
}
60
$params = $this->_httpUtility->assembleParams($url, $config, $customParams);
61
return $this->_httpUtility->toAuthorizationHeader($params, $realm);
62
}
63
72
public function toQueryString($url, Zend_Oauth_Config_ConfigInterface $config, array $params = null)
73
{
74
if (!Zend_Uri::check($url)) {
75
#require_once '
Zend
/Oauth/Exception.php
';
76
throw new Zend_Oauth_Exception(
77
'
\
''
.
$url
.
'\'
is not a valid URI
'
78
);
79
}
80
$params = $this->_httpUtility->assembleParams($url, $config, $params);
81
return $this->_httpUtility->toEncodedQueryString($params);
82
}
83
93
public function getHttpClient(array $oauthOptions, $uri = null, $config = null, $excludeCustomParamsFromHeader = true)
94
{
95
$client = new Zend_Oauth_Client($oauthOptions, $uri, $config, $excludeCustomParamsFromHeader);
96
$client->setToken($this);
97
return $client;
98
}
99
}
$url
$url
Definition:
query_redirect.php:14
Zend_Oauth_Token_Access
Definition:
Access.php:40
$config
$config
Definition:
fraud_order.php:17
Zend_Uri\check
static check($uri)
Definition:
Uri.php:72
Zend
Zend_Oauth_Token_Access\toHeader
toHeader( $url, Zend_Oauth_Config_ConfigInterface $config, array $customParams=null, $realm=null)
Definition:
Access.php:51
Zend_Oauth_Exception
Definition:
Exception.php:33
Zend_Oauth_Config_ConfigInterface
Definition:
ConfigInterface.php:28
Zend_Oauth_Token
Definition:
Token.php:31