private static function setupModule()
    {
        // Check if ddmedia table was already created, if not create it.
        if (!self::tableExists('ddmedia')) {
            self::executeSQL(self::$_sCreateDdMediaSql);
        }
        // Check if ddmedia table has all needed fields, if not add them to the table.
        foreach (self::$_aSetupDdMediaSQLs as $sField => $sSql) {
            if (!self::fieldExists($sField, 'ddmedia')) {
                self::executeSQL($sSql);
            }
        }
        /** @var \OxidEsales\Eshop\Core\Config $oConfig */
        $oConfig = Registry::getConfig();
        $oConfig->saveShopConfVar('bool', 'blModuleWasEnabled', 'true', $oConfig->getShopId(), 'module:ddoewysiwyg');
    }
private static function setupModule()
    {
        // Check if ddmedia table was already created, if not create it.
        if (!self::tableExists('ddmedia')) {
            self::executeSQL(self::$_sCreateDdMediaSql);
        }
        // Check if ddmedia table has all needed fields, if not add them to the table.
        foreach (self::$_aSetupDdMediaSQLs as $sField => $sSql) {
            if (!self::fieldExists($sField, 'ddmedia')) {
                self::executeSQL($sSql);
            }
        }
        /** @var \OxidEsales\Eshop\Core\Config $oConfig */
        $oConfig = Registry::getConfig();
        $oConfig->saveShopConfVar('bool', 'blModuleWasEnabled', 'true', $oConfig->getShopId(), 'module:ddoewysiwyg');
    }
private static function setupModule ( ) { // Check if ddmedia table was already created, if not create it. if ( ! self :: tableExists ( 'ddmedia' ) ) { self :: executeSQL ( self :: $ _sCreateDdMediaSql ) ; } // Check if ddmedia table has all needed fields, if not add them to the table. foreach ( self :: $ _aSetupDdMediaSQLs as $ sField => $ sSql ) { if ( ! self :: fieldExists ( $ sField , 'ddmedia' ) ) { self :: executeSQL ( $ sSql ) ; } } /** @var \OxidEsales\Eshop\Core\Config $oConfig */ $ oConfig = Registry :: getConfig ( ) ; $ oConfig -> saveShopConfVar ( 'bool' , 'blModuleWasEnabled' , 'true' , $ oConfig -> getShopId ( ) , 'module:ddoewysiwyg' ) ; }
Execute the sql at the first time of the module installation.
Execute the sql at the first time of the module installation .