Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Setup.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Setup\Module;
7 
10 
15 {
25  public function getIdxName(
26  $tableName,
27  $fields,
28  $indexType = '',
30  ) {
31  return $this->getConnection($connectionName)->getIndexName($this->getTable($tableName), $fields, $indexType);
32  }
33 
44  public function getFkName(
45  $priTableName,
46  $priColumnName,
47  $refTableName,
48  $refColumnName,
50  ) {
51  return $this->getConnection($connectionName)->getForeignKeyName(
52  $this->getTable($priTableName),
53  $priColumnName,
54  $refTableName,
55  $refColumnName
56  );
57  }
58 }
$tableName
Definition: trigger.php:13
$fields
Definition: details.phtml:14
getFkName( $priTableName, $priColumnName, $refTableName, $refColumnName, $connectionName=ResourceConnection::DEFAULT_CONNECTION)
Definition: Setup.php:44
getIdxName( $tableName, $fields, $indexType='', $connectionName=ResourceConnection::DEFAULT_CONNECTION)
Definition: Setup.php:25
getTable($tableName, $connectionName=ResourceConnection::DEFAULT_CONNECTION)
Definition: Setup.php:120