src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/persistent/writer.php
private function determinePrimaries( $indexes )
    {
        $primaries = array();
        foreach ( $indexes as $index )
        {
            if ( $index->primary )
            {
                foreach ( $index->indexFields as $field => $definiton )
                {
                    $primaries[$field] = true;
                }
            }
        }
        return $primaries;
    }
private function determinePrimaries( $indexes )
    {
        $primaries = array();
        foreach ( $indexes as $index )
        {
            if ( $index->primary )
            {
                foreach ( $index->indexFields as $field => $definiton )
                {
                    $primaries[$field] = true;
                }
            }
        }
        return $primaries;
    }
private function determinePrimaries ( $ indexes ) { $ primaries = array ( ) ; foreach ( $ indexes as $ index ) { if ( $ index -> primary ) { foreach ( $ index -> indexFields as $ field => $ definiton ) { $ primaries [ $ field ] = true ; } } } return $ primaries ; }
Extract primary keys from an index definition.
This method extracts the names of all primary keys from the index
defintions of a table.

@param array(string=>ezcDbSchemaIndex) $indexes Indices.
@return array(string=>bool) The primary keys.
Extract primary keys from an index definition . This method extracts the names of all primary keys from the index defintions of a table .