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
Integration.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Integration\Model\ResourceModel
;
8
12
class
Integration
extends
\Magento\Framework\Model\ResourceModel\Db\AbstractDb
13
{
19
protected
function
_construct
()
20
{
21
$this->
_init
(
'integration'
,
'integration_id'
);
22
}
23
30
public
function
selectActiveIntegrationByConsumerId
($consumerId)
31
{
32
$connection
= $this->
getConnection
();
33
$select
=
$connection
->select()
34
->from($this->
getMainTable
())
35
->where(
'consumer_id = ?'
, $consumerId)
36
->where(
'status = ?'
, \
Magento
\
Integration
\Model\
Integration::STATUS_ACTIVE
);
37
return
$connection
->fetchRow(
$select
);
38
}
39
}
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getMainTable
getMainTable()
Definition:
AbstractDb.php:264
Magento\Framework\Model\ResourceModel\Db\AbstractDb\_init
_init($mainTable, $idFieldName)
Definition:
AbstractDb.php:186
Magento\Integration\Model\ResourceModel
Definition:
IntegrationTest.php:6
Magento\Integration\Model\Integration\STATUS_ACTIVE
const STATUS_ACTIVE
Definition:
Integration.php:38
Magento\Integration\Model\ResourceModel\Integration
Definition:
Integration.php:12
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento
Magento\Framework\Model\ResourceModel\Db\AbstractDb
Definition:
AbstractDb.php:24
Magento\Integration\Model\ResourceModel\Integration\selectActiveIntegrationByConsumerId
selectActiveIntegrationByConsumerId($consumerId)
Definition:
Integration.php:30
$connection
$connection
Definition:
bulk.php:13
Magento\Integration\Model\ResourceModel\Integration\_construct
_construct()
Definition:
Integration.php:19
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getConnection
getConnection()
Definition:
AbstractDb.php:325