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
AuthorizedRequest.php
Go to the documentation of this file.
1
<?php
23
#require_once 'Zend/Oauth/Token.php';
24
31
class
Zend_Oauth_Token_AuthorizedRequest
extends
Zend_Oauth_Token
32
{
36
protected
$_data
= array();
37
45
public
function
__construct
(array
$data
=
null
,
Zend_Oauth_Http_Utility
$utility =
null
)
46
{
47
if
(
$data
!==
null
) {
48
$this->_data =
$data
;
49
$params
= $this->
_parseData
();
50
if
(count(
$params
) > 0) {
51
$this->
setParams
(
$params
);
52
}
53
}
54
if
($utility !==
null
) {
55
$this->_httpUtility = $utility;
56
}
else
{
57
$this->_httpUtility =
new
Zend_Oauth_Http_Utility
;
58
}
59
}
60
66
public
function
getData
()
67
{
68
return
$this->_data
;
69
}
70
76
public
function
isValid
()
77
{
78
if
(isset($this->_params[self::TOKEN_PARAM_KEY])
79
&& !empty($this->_params[self::TOKEN_PARAM_KEY])
80
) {
81
return
true
;
82
}
83
return
false
;
84
}
85
91
protected
function
_parseData
()
92
{
93
$params
= array();
94
if
(empty($this->_data)) {
95
return
;
96
}
97
foreach
($this->_data as $key =>
$value
) {
98
$params
[rawurldecode($key)] = rawurldecode(
$value
);
99
}
100
return
$params
;
101
}
102
}
Zend_Oauth_Token_AuthorizedRequest\_parseData
_parseData()
Definition:
AuthorizedRequest.php:91
Zend_Oauth_Token\setParams
setParams(array $params)
Definition:
Token.php:157
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$value
$value
Definition:
gender.phtml:16
Zend_Oauth_Token_AuthorizedRequest\__construct
__construct(array $data=null, Zend_Oauth_Http_Utility $utility=null)
Definition:
AuthorizedRequest.php:45
Zend_Oauth_Token_AuthorizedRequest\isValid
isValid()
Definition:
AuthorizedRequest.php:76
Zend_Oauth_Token_AuthorizedRequest\getData
getData()
Definition:
AuthorizedRequest.php:66
Zend_Oauth_Http_Utility
Definition:
Utility.php:34
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18
Zend_Oauth_Token_AuthorizedRequest
Definition:
AuthorizedRequest.php:31
Zend_Oauth_Token_AuthorizedRequest\$_data
$_data
Definition:
AuthorizedRequest.php:36
Zend_Oauth_Token
Definition:
Token.php:31