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-indexer
Indexer
Source
SourceIndexer.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryIndexer\Indexer\Source
;
9
10
use
Magento\InventoryIndexer\Indexer\Stock\StockIndexer
;
11
17
class
SourceIndexer
18
{
22
private
$getAssignedStockIds;
23
27
private
$stockIndexer;
28
33
public
function
__construct
(
34
GetAssignedStockIds
$getAssignedStockIds,
35
StockIndexer
$stockIndexer
36
) {
37
$this->getAssignedStockIds = $getAssignedStockIds;
38
$this->stockIndexer = $stockIndexer;
39
}
40
44
public
function
executeFull
()
45
{
46
$this->stockIndexer->executeFull();
47
}
48
53
public
function
executeRow
(
string
$sourceCode
)
54
{
55
$this->
executeList
([$sourceCode]);
56
}
57
61
public
function
executeList
(array $sourceCodes)
62
{
63
$stockIds
= $this->getAssignedStockIds->execute($sourceCodes);
64
$this->stockIndexer->executeList(
$stockIds
);
65
}
66
}
Magento\InventoryIndexer\Indexer\Source\GetAssignedStockIds
Definition:
GetAssignedStockIds.php:17
Magento\InventoryIndexer\Indexer\Source\SourceIndexer\executeFull
executeFull()
Definition:
SourceIndexer.php:44
Magento\InventoryIndexer\Indexer\Source\SourceIndexer\executeList
executeList(array $sourceCodes)
Definition:
SourceIndexer.php:61
$sourceCode
$sourceCode
Definition:
inventory.phtml:11
Magento\InventoryIndexer\Indexer\Source\SourceIndexer\executeRow
executeRow(string $sourceCode)
Definition:
SourceIndexer.php:53
Magento\InventoryIndexer\Indexer\Source\SourceIndexer
Definition:
SourceIndexer.php:17
Magento\InventoryIndexer\Indexer\Stock\StockIndexer
Definition:
StockIndexer.php:25
Magento\InventoryIndexer\Indexer\Source\SourceIndexer\__construct
__construct(GetAssignedStockIds $getAssignedStockIds, StockIndexer $stockIndexer)
Definition:
SourceIndexer.php:33
$stockIds
$stockIds
Definition:
reindex_inventory_rollback.php:19
Magento\InventoryIndexer\Indexer\Source
Definition:
GetAssignedStockIds.php:8