protected function prepareIndexName( array $columns, &$name )
    {
        $cols = implode( ', ', $columns );
        $cols = rtrim( $cols, ', ' );

        if ( '' === $name )
        {
            $name = 'index_' . str_replace( ', ', '_', $cols );
        }

        return $cols;
    }
protected function prepareIndexName( array $columns, &$name )
    {
        $cols = implode( ', ', $columns );
        $cols = rtrim( $cols, ', ' );

        if ( '' === $name )
        {
            $name = 'index_' . str_replace( ', ', '_', $cols );
        }

        return $cols;
    }
protected function prepareIndexName ( array $ columns , & $ name ) { $ cols = implode ( ', ' , $ columns ) ; $ cols = rtrim ( $ cols , ', ' ) ; if ( '' === $ name ) { $ name = 'index_' . str_replace ( ', ' , '_' , $ cols ) ; } return $ cols ; }
Prepare columns and index name.

@param array  $columns
@param string $name

@return string
Prepare columns and index name .