|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\Module\Setup\Context $context, $connectionName=ModuleDataSetupInterface::DEFAULT_SETUP_CONNECTION) | |
| getSetupCache () | |
| getTableRow ($table, $idField, $rowId, $field=null, $parentField=null, $parentId=0) | |
| deleteTableRow ($table, $idField, $rowId, $parentField=null, $parentId=0) | |
| updateTableRow ($table, $idField, $rowId, $field, $value=null, $parentField=null, $parentId=0) | |
| getEventManager () | |
| getFilesystem () | |
| createMigrationSetup (array $data=[]) | |
Public Member Functions inherited from Setup | |
| __construct (\Magento\Framework\App\ResourceConnection $resource, $connectionName=ModuleDataSetupInterface::DEFAULT_SETUP_CONNECTION) | |
| getConnection ($connectionName=null) | |
| setTable ($tableName, $realTableName) | |
| getTablePlaceholder ($tableName) | |
| getTable ($tableName, $connectionName=ResourceConnection::DEFAULT_CONNECTION) | |
| tableExists ($table, $connectionName=ResourceConnection::DEFAULT_CONNECTION) | |
| run ($sql) | |
| startSetup () | |
| endSetup () | |
Public Member Functions inherited from SetupInterface | |
| getConnection () | |
| getTable ($tableName) | |
| tableExists ($table) | |
Additional Inherited Members | |
Data Fields inherited from ModuleDataSetupInterface | |
| const | DEFAULT_SETUP_CONNECTION = 'default_setup' |
| const | VERSION_COMPARE_EQUAL = 0 |
| const | VERSION_COMPARE_LOWER = -1 |
| const | VERSION_COMPARE_GREATER = 1 |
| const | TYPE_DATA_INSTALL = 'data-install' |
| const | TYPE_DATA_UPGRADE = 'data-upgrade' |
@api
Definition at line 17 of file DataSetup.php.
| __construct | ( | \Magento\Framework\Module\Setup\Context | $context, |
$connectionName = ModuleDataSetupInterface::DEFAULT_SETUP_CONNECTION |
|||
| ) |
Init
| \Magento\Framework\Module\Setup\Context | $context | |
| string | $connectionName |
Definition at line 60 of file DataSetup.php.
| createMigrationSetup | ( | array | $data = [] | ) |
Create migration setup
| array | $data |
Implements ModuleDataSetupInterface.
Definition at line 201 of file DataSetup.php.
| deleteTableRow | ( | $table, | |
| $idField, | |||
| $rowId, | |||
$parentField = null, |
|||
$parentId = 0 |
|||
| ) |
Delete table row
| string | $table | |
| string | $idField | |
| string | int | $rowId | |
| null | string | $parentField | |
| int | string | $parentId |
Implements ModuleDataSetupInterface.
Definition at line 120 of file DataSetup.php.
| getEventManager | ( | ) |
Gets event manager
Implements ModuleDataSetupInterface.
Definition at line 180 of file DataSetup.php.
| getFilesystem | ( | ) |
Gets filesystem
Implements ModuleDataSetupInterface.
Definition at line 190 of file DataSetup.php.
| getSetupCache | ( | ) |
{Gets setup cache
Implements ModuleDataSetupInterface.
Definition at line 75 of file DataSetup.php.
| getTableRow | ( | $table, | |
| $idField, | |||
| $rowId, | |||
$field = null, |
|||
$parentField = null, |
|||
$parentId = 0 |
|||
| ) |
Retrieve row or field from table by id or string and parent id
| string | $table | |
| string | $idField | |
| string | integer | $rowId | |
| string | null | $field | |
| string | null | $parentField | |
| string | integer | $parentId |
Implements ModuleDataSetupInterface.
Definition at line 91 of file DataSetup.php.
| updateTableRow | ( | $table, | |
| $idField, | |||
| $rowId, | |||
| $field, | |||
$value = null, |
|||
$parentField = null, |
|||
$parentId = 0 |
|||
| ) |
Update one or more fields of table row
| string | $table | |
| string | $idField | |
| string | integer | $rowId | |
| string | array | $field | |
| mixed | null | $value | |
| string | $parentField | |
| string | integer | $parentId |
Implements ModuleDataSetupInterface.
Definition at line 149 of file DataSetup.php.