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
module-integration
Model
ResourceModel
Oauth
Nonce.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Integration\Model\ResourceModel\Oauth
;
7
13
class
Nonce
extends
\Magento\Framework\Model\ResourceModel\Db\AbstractDb
14
{
20
protected
function
_construct
()
21
{
22
$this->
_init
(
'oauth_nonce'
,
null
);
23
}
24
31
public
function
deleteOldEntries
($minutes)
32
{
33
if
($minutes > 0) {
34
$connection
= $this->
getConnection
();
35
36
return
$connection
->delete(
37
$this->
getMainTable
(),
38
$connection
->quoteInto(
'timestamp <= ?'
,
time
() - $minutes * 60, \
Zend_Db::INT_TYPE
)
39
);
40
}
else
{
41
return
0;
42
}
43
}
44
52
public
function
selectByCompositeKey
($nonce, $consumerId)
53
{
54
$connection
= $this->
getConnection
();
55
$select
=
$connection
->select()->from(
56
$this->
getMainTable
()
57
)->where(
58
'nonce = ?'
,
59
$nonce
60
)->where(
61
'consumer_id = ?'
,
62
$consumerId
63
);
64
$row
=
$connection
->fetchRow(
$select
);
65
return
$row
?
$row
: [];
66
}
67
}
Magento\Integration\Model\ResourceModel\Oauth\Nonce\selectByCompositeKey
selectByCompositeKey($nonce, $consumerId)
Definition:
Nonce.php:52
Magento\Integration\Model\ResourceModel\Oauth
Definition:
TokenTest.php:7
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getMainTable
getMainTable()
Definition:
AbstractDb.php:264
Magento\Integration\Model\ResourceModel\Oauth\Nonce\_construct
_construct()
Definition:
Nonce.php:20
Magento\Setup\Model\Cron\time
time()
Definition:
ReadinessCheckTest.php:207
Magento\Integration\Model\ResourceModel\Oauth\Nonce\deleteOldEntries
deleteOldEntries($minutes)
Definition:
Nonce.php:31
Zend_Db\INT_TYPE
const INT_TYPE
Definition:
Db.php:68
Magento\Framework\Model\ResourceModel\Db\AbstractDb\_init
_init($mainTable, $idFieldName)
Definition:
AbstractDb.php:186
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\Framework\Model\ResourceModel\Db\AbstractDb
Definition:
AbstractDb.php:24
Magento\Integration\Model\ResourceModel\Oauth\Nonce
Definition:
Nonce.php:13
$connection
$connection
Definition:
bulk.php:13
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getConnection
getConnection()
Definition:
AbstractDb.php:325
$row
$row
Definition:
cart_rule_free_shipping.php:12