application/controllers/admin/bestitamazonpay4oxid_init.php
protected static function _executeSqlFile($sFile)
    {
        $blSuccess = false;
        $sFileWithPath = dirname(__FILE__) . '/../../../_db/' . $sFile;

        if (file_exists($sFileWithPath)) {
            $sSqlFile = file_get_contents($sFileWithPath);
            $aSqlRows = explode(';', $sSqlFile);
            $aSqlRows = array_map('trim', $aSqlRows);

            foreach ($aSqlRows as $sSqlRow) {
                if ($sSqlRow !== '') {
                    self::_getDatabase()->execute($sSqlRow);
                }
            }

            $blSuccess = true;
        }

        return $blSuccess;
    }
protected static function _executeSqlFile($sFile)
    {
        $blSuccess = false;
        $sFileWithPath = dirname(__FILE__) . '/../../../_db/' . $sFile;

        if (file_exists($sFileWithPath)) {
            $sSqlFile = file_get_contents($sFileWithPath);
            $aSqlRows = explode(';', $sSqlFile);
            $aSqlRows = array_map('trim', $aSqlRows);

            foreach ($aSqlRows as $sSqlRow) {
                if ($sSqlRow !== '') {
                    self::_getDatabase()->execute($sSqlRow);
                }
            }

            $blSuccess = true;
        }

        return $blSuccess;
    }
protected static function _executeSqlFile ( $ sFile ) { $ blSuccess = false ; $ sFileWithPath = dirname ( __FILE__ ) . '/../../../_db/' . $ sFile ; if ( file_exists ( $ sFileWithPath ) ) { $ sSqlFile = file_get_contents ( $ sFileWithPath ) ; $ aSqlRows = explode ( ';' , $ sSqlFile ) ; $ aSqlRows = array_map ( 'trim' , $ aSqlRows ) ; foreach ( $ aSqlRows as $ sSqlRow ) { if ( $ sSqlRow !== '' ) { self :: _getDatabase ( ) -> execute ( $ sSqlRow ) ; } } $ blSuccess = true ; } return $ blSuccess ; }
Executes a sql file.

@param string $sFile

@return bool
@throws oxConnectionException
Executes a sql file .