/** * Redeclared for backwards compatibility with Magento versions prior to * 1.6.x Community and 1.11.x Enterprise * * @param string $tableName * @param array|string $fields * @param string $indexType * * @return mixed|string */ public function getIdxName($tableName, $fields, $indexType = '') { if (method_exists(get_parent_class(__CLASS__), 'getIdxName')) { return parent::getIdxName($tableName, $fields, $indexType); } else { return Goodahead_Core_Model_Resource_Setup_Compatibility::getIndexName($this->getTable($tableName), $fields, $indexType); } }