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
framework
Indexer
AbstractProcessor.php
Go to the documentation of this file.
1
<?php
9
namespace
Magento\Framework\Indexer
;
10
11
abstract
class
AbstractProcessor
12
{
16
const
INDEXER_ID
=
''
;
17
21
protected
$indexerRegistry
;
22
26
public
function
__construct
(
27
\
Magento
\Framework\Indexer\
IndexerRegistry
$indexerRegistry
28
) {
29
$this->indexerRegistry =
$indexerRegistry
;
30
}
31
37
public
function
getIndexer
()
38
{
39
return
$this->indexerRegistry->get(static::INDEXER_ID);
40
}
41
49
public
function
reindexRow
(
$id
, $forceReindex =
false
)
50
{
51
if
(!$forceReindex && $this->
isIndexerScheduled
()) {
52
return
;
53
}
54
$this->
getIndexer
()->reindexRow(
$id
);
55
}
56
64
public
function
reindexList
($ids, $forceReindex =
false
)
65
{
66
if
(!$forceReindex && $this->
isIndexerScheduled
()) {
67
return
;
68
}
69
$this->
getIndexer
()->reindexList($ids);
70
}
71
77
public
function
reindexAll
()
78
{
79
$this->
getIndexer
()->reindexAll();
80
}
81
87
public
function
markIndexerAsInvalid
()
88
{
89
$this->
getIndexer
()->invalidate();
90
}
91
97
public
function
getIndexerId
()
98
{
99
return
static::INDEXER_ID;
100
}
101
107
public
function
isIndexerScheduled
()
108
{
109
return
$this->
getIndexer
()->isScheduled();
110
}
111
}
Magento\Framework\Indexer\AbstractProcessor\getIndexer
getIndexer()
Definition:
AbstractProcessor.php:37
Magento\Framework\Indexer\AbstractProcessor
Definition:
AbstractProcessor.php:11
Magento\Framework\Indexer\AbstractProcessor\$indexerRegistry
$indexerRegistry
Definition:
AbstractProcessor.php:21
$id
$id
Definition:
fieldset.phtml:14
Magento\Framework\Indexer\AbstractProcessor\markIndexerAsInvalid
markIndexerAsInvalid()
Definition:
AbstractProcessor.php:87
Magento\Framework\Indexer\AbstractProcessor\reindexAll
reindexAll()
Definition:
AbstractProcessor.php:77
Magento\Framework\Indexer
Definition:
AbstractProcessor.php:9
Magento
Magento\Framework\Indexer\IndexerRegistry
Definition:
IndexerRegistry.php:12
Magento\Framework\Indexer\AbstractProcessor\getIndexerId
getIndexerId()
Definition:
AbstractProcessor.php:97
Magento\Framework\Indexer\AbstractProcessor\reindexRow
reindexRow($id, $forceReindex=false)
Definition:
AbstractProcessor.php:49
Magento\Framework\Indexer\AbstractProcessor\INDEXER_ID
const INDEXER_ID
Definition:
AbstractProcessor.php:16
Magento\Framework\Indexer\AbstractProcessor\__construct
__construct(\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry)
Definition:
AbstractProcessor.php:26
Magento\Framework\Indexer\AbstractProcessor\isIndexerScheduled
isIndexerScheduled()
Definition:
AbstractProcessor.php:107
Magento\Framework\Indexer\AbstractProcessor\reindexList
reindexList($ids, $forceReindex=false)
Definition:
AbstractProcessor.php:64