library/Services/Library/DatabaseRestorer/DatabaseRestorer.php
private function getTableChecksum($aTables)
    {
        $aTables = is_array($aTables) ? $aTables : array($aTables);
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
        $sSelect = 'CHECKSUM TABLE `' . implode("`, `", $aTables) . '`';
        $aResults = $oDb->getAll($sSelect);

        $sDbName = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dbName');
        $aChecksum = array();
        foreach ($aResults as $aResult) {
            $sTable = str_replace($sDbName . '.', '', $aResult['Table']);
            $aChecksum[$sTable] = $aResult['Checksum'];
        }

        return $aChecksum;
    }
private function getTableChecksum($aTables)
    {
        $aTables = is_array($aTables) ? $aTables : array($aTables);
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
        $sSelect = 'CHECKSUM TABLE `' . implode("`, `", $aTables) . '`';
        $aResults = $oDb->getAll($sSelect);

        $sDbName = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dbName');
        $aChecksum = array();
        foreach ($aResults as $aResult) {
            $sTable = str_replace($sDbName . '.', '', $aResult['Table']);
            $aChecksum[$sTable] = $aResult['Checksum'];
        }

        return $aChecksum;
    }
private function getTableChecksum ( $ aTables ) { $ aTables = is_array ( $ aTables ) ? $ aTables : array ( $ aTables ) ; $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: FETCH_MODE_ASSOC ) ; $ sSelect = 'CHECKSUM TABLE `' . implode ( "`, `" , $ aTables ) . '`' ; $ aResults = $ oDb -> getAll ( $ sSelect ) ; $ sDbName = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'dbName' ) ; $ aChecksum = array ( ) ; foreach ( $ aResults as $ aResult ) { $ sTable = str_replace ( $ sDbName . '.' , '' , $ aResult [ 'Table' ] ) ; $ aChecksum [ $ sTable ] = $ aResult [ 'Checksum' ] ; } return $ aChecksum ; }
Converts a string to UTF format.

@param array|string $aTables

@return array
Converts a string to UTF format .