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-inventory-low-quantity-notification
Model
ResourceModel
BulkConfigurationUnassign.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryLowQuantityNotification\Model\ResourceModel
;
9
10
use
Magento\Framework\App\ResourceConnection
;
11
15
class
BulkConfigurationUnassign
16
{
20
private
$resourceConnection;
21
25
public
function
__construct
(
26
ResourceConnection
$resourceConnection
27
) {
28
$this->resourceConnection =
$resourceConnection
;
29
}
30
37
public
function
execute
(
38
array
$skus
,
39
array $sources
40
) {
41
$tableName
= $this->resourceConnection->getTableName(
'inventory_low_stock_notification_configuration'
);
42
$connection
= $this->resourceConnection->getConnection();
43
44
$connection
->delete(
45
$tableName
,
46
$connection
->quoteInto(
'sku IN (?)'
,
$skus
) .
' AND '
.
47
$connection
->quoteInto(
'source_code IN (?)'
, $sources)
48
);
49
}
50
}
$tableName
$tableName
Definition:
trigger.php:13
Magento\InventoryLowQuantityNotification\Model\ResourceModel\BulkConfigurationUnassign
Definition:
BulkConfigurationUnassign.php:15
Magento\InventoryLowQuantityNotification\Model\ResourceModel\BulkConfigurationUnassign\execute
execute(array $skus, array $sources)
Definition:
BulkConfigurationUnassign.php:37
$skus
foreach($websiteCodes as $websiteCode) $skus
Definition:
assign_products_to_websites.php:23
Magento\InventoryLowQuantityNotification\Model\ResourceModel
Definition:
BulkConfigurationAssign.php:8
$resourceConnection
$resourceConnection
Definition:
website_attribute_sync.php:32
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
$connection
$connection
Definition:
bulk.php:13
Magento\InventoryLowQuantityNotification\Model\ResourceModel\BulkConfigurationUnassign\__construct
__construct(ResourceConnection $resourceConnection)
Definition:
BulkConfigurationUnassign.php:25
Magento\Framework\App\ResourceConnection