original_string: function getRenameIndexSQL($xmldb_table, $xmldb_index, $newname) {
          // Some DB doesn't support index renaming (MySQL) so this can be empty
          if (empty($this->rename_index_sql)) {
              return array();
          }
  
          // Get the real index name
          $dbindexname = $this->mdb->get_manager()->find_index_name($xmldb_table, $xmldb_index);
          // Replace TABLENAME and INDEXNAME as needed
          $renamesql = str_replace('TABLENAME', $this->getTableName($xmldb_table), $this->rename_index_sql);
          $renamesql = str_replace('OLDINDEXNAME', $this->getEncQuoted($dbindexname), $renamesql);
          $renamesql = str_replace('NEWINDEXNAME', $this->getEncQuoted($newname), $renamesql);
  
          return array($renamesql);
      }
code: function getRenameIndexSQL($xmldb_table, $xmldb_index, $newname) {
          // Some DB doesn't support index renaming (MySQL) so this can be empty
          if (empty($this->rename_index_sql)) {
              return array();
          }
  
          // Get the real index name
          $dbindexname = $this->mdb->get_manager()->find_index_name($xmldb_table, $xmldb_index);
          // Replace TABLENAME and INDEXNAME as needed
          $renamesql = str_replace('TABLENAME', $this->getTableName($xmldb_table), $this->rename_index_sql);
          $renamesql = str_replace('OLDINDEXNAME', $this->getEncQuoted($dbindexname), $renamesql);
          $renamesql = str_replace('NEWINDEXNAME', $this->getEncQuoted($newname), $renamesql);
  
          return array($renamesql);
      }
code_tokens: function getRenameIndexSQL ( $ xmldb_table , $ xmldb_index , $ newname ) { // Some DB doesn't support index renaming (MySQL) so this can be empty if ( empty ( $ this -> rename_index_sql ) ) { return array ( ) ; } // Get the real index name $ dbindexname = $ this -> mdb -> get_manager ( ) -> find_index_name ( $ xmldb_table , $ xmldb_index ) ; // Replace TABLENAME and INDEXNAME as needed $ renamesql = str_replace ( 'TABLENAME' , $ this -> getTableName ( $ xmldb_table ) , $ this -> rename_index_sql ) ; $ renamesql = str_replace ( 'OLDINDEXNAME' , $ this -> getEncQuoted ( $ dbindexname ) , $ renamesql ) ; $ renamesql = str_replace ( 'NEWINDEXNAME' , $ this -> getEncQuoted ( $ newname ) , $ renamesql ) ; return array ( $ renamesql ) ; }
docstring: Given one xmldb_table and one xmldb_index, return the SQL statements needed to rename the index in the table
  Experimental! Shouldn't be used at all!
  
  @param xmldb_table $xmldb_table The xmldb_table instance to rename the index on.
  @param xmldb_index $xmldb_index The xmldb_index to rename.
  @param string $newname The xmldb_index's new name.
  @return array An array of SQL statements to rename the index.
docstring_tokens: Given one xmldb_table and one xmldb_index return the SQL statements needed to rename the index in the table Experimental! Shouldn t be used at all!