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

        $data = array();
        foreach ($tables as $table) {
            $data[$table] = array();

            $result = $db->select("SELECT * FROM `${table}`");
            if ($result && $result->count() > 0) {

                $rows = array();
                while (!$result->EOF) {
                    $rows[] = $result->fields;

                    $result->fetchRow();
                }
                $data[$table]["_sql_"] = $this->getInsertString($rows, $table);
            }
        }

        return $data;
    }
private function getTableData($tables)
    {
        $db = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $data = array();
        foreach ($tables as $table) {
            $data[$table] = array();

            $result = $db->select("SELECT * FROM `${table}`");
            if ($result && $result->count() > 0) {

                $rows = array();
                while (!$result->EOF) {
                    $rows[] = $result->fields;

                    $result->fetchRow();
                }
                $data[$table]["_sql_"] = $this->getInsertString($rows, $table);
            }
        }

        return $data;
    }
private function getTableData ( $ tables ) { $ db = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: FETCH_MODE_ASSOC ) ; $ data = array ( ) ; foreach ( $ tables as $ table ) { $ data [ $ table ] = array ( ) ; $ result = $ db -> select ( "SELECT * FROM `${table}`" ) ; if ( $ result && $ result -> count ( ) > 0 ) { $ rows = array ( ) ; while ( ! $ result -> EOF ) { $ rows [ ] = $ result -> fields ; $ result -> fetchRow ( ) ; } $ data [ $ table ] [ "_sql_" ] = $ this -> getInsertString ( $ rows , $ table ) ; } } return $ data ; }
Returns data for given tables.

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