library/Services/Library/DatabaseRestorer/DatabaseRestorer.php
private function getTableColumns($tables)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $columns = array();
        foreach ($tables as $table) {
            $tmp = $database->getAll("SHOW COLUMNS FROM `$table`");
            foreach ($tmp as $sub) {
                $key = $sub['Field'];
                unset($sub['Field']);
                $columns[$table][$key] = $sub;
            }
        }

        return $columns;
    }
private function getTableColumns($tables)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $columns = array();
        foreach ($tables as $table) {
            $tmp = $database->getAll("SHOW COLUMNS FROM `$table`");
            foreach ($tmp as $sub) {
                $key = $sub['Field'];
                unset($sub['Field']);
                $columns[$table][$key] = $sub;
            }
        }

        return $columns;
    }
private function getTableColumns ( $ tables ) { $ database = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: FETCH_MODE_ASSOC ) ; $ columns = array ( ) ; foreach ( $ tables as $ table ) { $ tmp = $ database -> getAll ( "SHOW COLUMNS FROM `$table`" ) ; foreach ( $ tmp as $ sub ) { $ key = $ sub [ 'Field' ] ; unset ( $ sub [ 'Field' ] ) ; $ columns [ $ table ] [ $ key ] = $ sub ; } } return $ columns ; }
Returns columns array for given tables.

@param array $tables
@return array
Returns columns array for given tables .