source/Core/Module/ModuleList.php
protected function _removeFromDatabase($aDeletedExtIds)
    {
        if (!is_array($aDeletedExtIds) || !count($aDeletedExtIds)) {
            return;
        }

        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $aConfigIds = $sDelExtIds = [];
        foreach ($aDeletedExtIds as $sDeletedExtId) {
            $aConfigIds[] = $oDb->quote('module:' . $sDeletedExtId);
            $sDelExtIds[] = $oDb->quote($sDeletedExtId);
        }

        $sConfigIds = implode(', ', $aConfigIds);
        $sDelExtIds = implode(', ', $sDelExtIds);

        $aSql[] = "DELETE FROM oxconfig where oxmodule IN ($sConfigIds)";
        $aSql[] = "DELETE FROM oxconfigdisplay where oxcfgmodule IN ($sConfigIds)";
        $aSql[] = "DELETE FROM oxtplblocks where oxmodule IN ($sDelExtIds)";

        foreach ($aSql as $sQuery) {
            $oDb->execute($sQuery);
        }
    }
protected function _removeFromDatabase($aDeletedExtIds)
    {
        if (!is_array($aDeletedExtIds) || !count($aDeletedExtIds)) {
            return;
        }

        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $aConfigIds = $sDelExtIds = [];
        foreach ($aDeletedExtIds as $sDeletedExtId) {
            $aConfigIds[] = $oDb->quote('module:' . $sDeletedExtId);
            $sDelExtIds[] = $oDb->quote($sDeletedExtId);
        }

        $sConfigIds = implode(', ', $aConfigIds);
        $sDelExtIds = implode(', ', $sDelExtIds);

        $aSql[] = "DELETE FROM oxconfig where oxmodule IN ($sConfigIds)";
        $aSql[] = "DELETE FROM oxconfigdisplay where oxcfgmodule IN ($sConfigIds)";
        $aSql[] = "DELETE FROM oxtplblocks where oxmodule IN ($sDelExtIds)";

        foreach ($aSql as $sQuery) {
            $oDb->execute($sQuery);
        }
    }
protected function _removeFromDatabase ( $ aDeletedExtIds ) { if ( ! is_array ( $ aDeletedExtIds ) || ! count ( $ aDeletedExtIds ) ) { return ; } $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ aConfigIds = $ sDelExtIds = [ ] ; foreach ( $ aDeletedExtIds as $ sDeletedExtId ) { $ aConfigIds [ ] = $ oDb -> quote ( 'module:' . $ sDeletedExtId ) ; $ sDelExtIds [ ] = $ oDb -> quote ( $ sDeletedExtId ) ; } $ sConfigIds = implode ( ', ' , $ aConfigIds ) ; $ sDelExtIds = implode ( ', ' , $ sDelExtIds ) ; $ aSql [ ] = "DELETE FROM oxconfig where oxmodule IN ($sConfigIds)" ; $ aSql [ ] = "DELETE FROM oxconfigdisplay where oxcfgmodule IN ($sConfigIds)" ; $ aSql [ ] = "DELETE FROM oxtplblocks where oxmodule IN ($sDelExtIds)" ; foreach ( $ aSql as $ sQuery ) { $ oDb -> execute ( $ sQuery ) ; } }
Removes extension from database - oxConfig, oxConfigDisplay and oxTplBlocks tables

@todo extract oxtplblocks query to ModuleTemplateBlockRepository

@param array $aDeletedExtIds deleted extensions ID's

@return null
Removes extension from database - oxConfig oxConfigDisplay and oxTplBlocks tables