/** * Retrieve list of columns used for an index or return false, if an index with a given name does not exist * * @param string $tableName * @param string $indexName * @param string|null $schemaName * @return array|false */ protected function _getIndexColumns($tableName, $indexName, $schemaName = null) { foreach ($this->_connection->getIndexList($tableName, $schemaName) as $idxData) { if ($idxData['KEY_NAME'] == $indexName) { return $idxData['COLUMNS_LIST']; } } return false; }
/** * @return string */ protected function getProductIdFieldName() { $table = $this->_defaultIndexerResource->getTable('catalog_product_entity'); $indexList = $this->_connection->getIndexList($table); return $indexList[$this->_connection->getPrimaryKeyName($table)]['COLUMNS_LIST'][0]; }