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
Table
Strategy.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Indexer\Table
;
7
8
class
Strategy
implements
StrategyInterface
9
{
15
protected
$resource
;
16
22
public
function
__construct
(
23
\
Magento
\Framework\
App
\
ResourceConnection
$resource
24
) {
25
$this->resource =
$resource
;
26
}
27
33
protected
$useIdxTable
=
false
;
34
38
public
function
getUseIdxTable
()
39
{
40
return
$this->useIdxTable
;
41
}
42
46
public
function
setUseIdxTable
(
$value
=
false
)
47
{
48
$this->useIdxTable = (bool)
$value
;
49
return
$this;
50
}
51
55
public
function
getTableName
($tablePrefix)
56
{
57
return
$this->resource->getTableName($this->
prepareTableName
($tablePrefix));
58
}
59
67
public
function
prepareTableName
($tablePrefix)
68
{
69
return
$this->
getUseIdxTable
()
70
? $tablePrefix .
self::IDX_SUFFIX
71
: $tablePrefix .
self::TMP_SUFFIX
;
72
}
73
}
Magento\Framework\Indexer\Table\Strategy\prepareTableName
prepareTableName($tablePrefix)
Definition:
Strategy.php:67
Magento\Framework\App
Magento\Framework\Indexer\Table\Strategy
Definition:
Strategy.php:8
Magento\Framework\Indexer\Table\Strategy\setUseIdxTable
setUseIdxTable($value=false)
Definition:
Strategy.php:46
Magento\Framework\Indexer\Table\StrategyInterface\TMP_SUFFIX
const TMP_SUFFIX
Definition:
StrategyInterface.php:17
Magento\Framework\Indexer\Table\Strategy\$useIdxTable
$useIdxTable
Definition:
Strategy.php:33
$value
$value
Definition:
gender.phtml:16
Magento\Framework\Indexer\Table\Strategy\getUseIdxTable
getUseIdxTable()
Definition:
Strategy.php:38
Magento\Framework\Indexer\Table\StrategyInterface
Definition:
StrategyInterface.php:13
Magento
Magento\Framework\Indexer\Table\Strategy\__construct
__construct(\Magento\Framework\App\ResourceConnection $resource)
Definition:
Strategy.php:22
Magento\Framework\Indexer\Table\StrategyInterface\IDX_SUFFIX
const IDX_SUFFIX
Definition:
StrategyInterface.php:15
Magento\Framework\Indexer\Table\Strategy\getTableName
getTableName($tablePrefix)
Definition:
Strategy.php:55
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
Magento\Framework\Indexer\Table\Strategy\$resource
$resource
Definition:
Strategy.php:15
Magento\Framework\Indexer\Table
Definition:
Strategy.php:6