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
Setup
Declaration
Schema
Dto
Schema.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Declaration\Schema\Dto
;
7
8
use
Magento\Framework\App\ResourceConnection
;
9
15
class
Schema
16
{
22
private
$resourceConnection;
23
29
private
$tables;
30
36
public
function
__construct
(
ResourceConnection
$resourceConnection)
37
{
38
$this->resourceConnection =
$resourceConnection
;
39
$this->tables = [];
40
}
41
47
public
function
getTables
()
48
{
49
return
$this->tables;
50
}
51
58
public
function
addTable
(
Table
$table
)
59
{
60
$this->tables[
$table
->getName()] =
$table
;
61
return
$this;
62
}
63
71
public
function
getTableByName
(
$name
)
72
{
73
$name
= $this->resourceConnection->getTableName(
$name
);
74
return
isset($this->tables[
$name
]) ? $this->tables[
$name
] :
false
;
75
}
76
}
Magento\Framework\Setup\Declaration\Schema\Dto\Schema\addTable
addTable(Table $table)
Definition:
Schema.php:58
Magento\Framework\Setup\Declaration\Schema\Dto
Definition:
Column.php:6
Magento\Framework\Setup\Declaration\Schema\Dto\Table
Definition:
Table.php:17
Magento\Framework\Setup\Declaration\Schema\Dto\Schema\getTableByName
getTableByName($name)
Definition:
Schema.php:71
Magento\Framework\Setup\Declaration\Schema\Dto\Schema
Definition:
Schema.php:15
$resourceConnection
$resourceConnection
Definition:
website_attribute_sync.php:32
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
$table
$table
Definition:
trigger.php:14
Magento\Framework\App\ResourceConnection
Magento\Framework\Setup\Declaration\Schema\Dto\Schema\getTables
getTables()
Definition:
Schema.php:47
Magento\Framework\Setup\Declaration\Schema\Dto\Schema\__construct
__construct(ResourceConnection $resourceConnection)
Definition:
Schema.php:36
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14