source/Core/Module/ModuleInstaller.php
protected function _deleteBlock($sModuleId)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
        $oDb->execute("DELETE FROM `oxtplblocks` WHERE `oxmodule` =" . $oDb->quote($sModuleId) . " AND `oxshopid` = " . $oDb->quote($sShopId));
    }
protected function _deleteBlock($sModuleId)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
        $oDb->execute("DELETE FROM `oxtplblocks` WHERE `oxmodule` =" . $oDb->quote($sModuleId) . " AND `oxshopid` = " . $oDb->quote($sShopId));
    }
protected function _deleteBlock ( $ sModuleId ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sShopId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ; $ oDb -> execute ( "DELETE FROM `oxtplblocks` WHERE `oxmodule` =" . $ oDb -> quote ( $ sModuleId ) . " AND `oxshopid` = " . $ oDb -> quote ( $ sShopId ) ) ; }
Deactivates or activates oxBlocks of a module

@todo extract oxtplblocks query to ModuleTemplateBlockRepository

@param string $sModuleId Module id
Deactivates or activates oxBlocks of a module