protected function getGenericIndexes(array $indexes)
    {
        $genericIndexes = array();

        foreach ($indexes as $index) {
            $name = $index['name'];

            if (!isset($genericIndexes[$name])) {
                $genericIndexes[$name] = new Index($name, array($index['column_name']), (bool) $index['unique']);
            } else {
                $genericIndexes[$name]->addColumnName($index['column_name']);
            }
        }

        return array_values($genericIndexes);
    }
protected function getGenericIndexes(array $indexes)
    {
        $genericIndexes = array();

        foreach ($indexes as $index) {
            $name = $index['name'];

            if (!isset($genericIndexes[$name])) {
                $genericIndexes[$name] = new Index($name, array($index['column_name']), (bool) $index['unique']);
            } else {
                $genericIndexes[$name]->addColumnName($index['column_name']);
            }
        }

        return array_values($genericIndexes);
    }
protected function getGenericIndexes ( array $ indexes ) { $ genericIndexes = array ( ) ; foreach ( $ indexes as $ index ) { $ name = $ index [ 'name' ] ; if ( ! isset ( $ genericIndexes [ $ name ] ) ) { $ genericIndexes [ $ name ] = new Index ( $ name , array ( $ index [ 'column_name' ] ) , ( bool ) $ index [ 'unique' ] ) ; } else { $ genericIndexes [ $ name ] -> addColumnName ( $ index [ 'column_name' ] ) ; } } return array_values ( $ genericIndexes ) ; }
Gets the generic table indexes.

The $indexes parameter contains:
- name
- column_name
- unique

@param array $indexes The indexes.

@return array The generic indexes.
Gets the generic table indexes .