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-catalog-search
Model
Indexer
Scope
State.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogSearch\Model\Indexer\Scope
;
8
22
class
State
23
{
24
const
USE_TEMPORARY_INDEX
=
'use_temporary_table'
;
25
const
USE_REGULAR_INDEX
=
'use_main_table'
;
26
30
private
$state =
self::USE_REGULAR_INDEX
;
31
37
public
function
useTemporaryIndex
()
38
{
39
$this->state =
self::USE_TEMPORARY_INDEX
;
40
}
41
47
public
function
useRegularIndex
()
48
{
49
$this->state =
self::USE_REGULAR_INDEX
;
50
}
51
57
public
function
getState
()
58
{
59
return
$this->state;
60
}
61
}
Magento\CatalogSearch\Model\Indexer\Scope\State
Definition:
State.php:22
Magento\CatalogSearch\Model\Indexer\Scope\State\useTemporaryIndex
useTemporaryIndex()
Definition:
State.php:37
Magento\CatalogSearch\Model\Indexer\Scope\State\USE_TEMPORARY_INDEX
const USE_TEMPORARY_INDEX
Definition:
State.php:24
Magento\CatalogSearch\Model\Indexer\Scope
Definition:
IndexSwitcher.php:6
Magento\CatalogSearch\Model\Indexer\Scope\State\getState
getState()
Definition:
State.php:57
Magento\CatalogSearch\Model\Indexer\Scope\State\USE_REGULAR_INDEX
const USE_REGULAR_INDEX
Definition:
State.php:25
Magento\CatalogSearch\Model\Indexer\Scope\State\useRegularIndex
useRegularIndex()
Definition:
State.php:47