application/controllers/admin/bestitamazonpay4oxid_init.php
public static function getCurrentVersion()
    {
        $aVersions = (array)self::_getConfig()->getConfigParam('aModuleVersions');

        $aPossibleModuleNames = array(
            'jagAmazonPayment4Oxid',
            'bestitAmazonPay4Oxid'
        );

        foreach ($aPossibleModuleNames as $sPossibleModuleName) {
            if (isset($aVersions[$sPossibleModuleName]) === true) {
                return $aVersions[$sPossibleModuleName];
            } elseif (isset($aVersions[strtolower($sPossibleModuleName)]) === true) {
                return $aVersions[strtolower($sPossibleModuleName)];
            }
        }

        return null;
    }
public static function getCurrentVersion()
    {
        $aVersions = (array)self::_getConfig()->getConfigParam('aModuleVersions');

        $aPossibleModuleNames = array(
            'jagAmazonPayment4Oxid',
            'bestitAmazonPay4Oxid'
        );

        foreach ($aPossibleModuleNames as $sPossibleModuleName) {
            if (isset($aVersions[$sPossibleModuleName]) === true) {
                return $aVersions[$sPossibleModuleName];
            } elseif (isset($aVersions[strtolower($sPossibleModuleName)]) === true) {
                return $aVersions[strtolower($sPossibleModuleName)];
            }
        }

        return null;
    }
public static function getCurrentVersion ( ) { $ aVersions = ( array ) self :: _getConfig ( ) -> getConfigParam ( 'aModuleVersions' ) ; $ aPossibleModuleNames = array ( 'jagAmazonPayment4Oxid' , 'bestitAmazonPay4Oxid' ) ; foreach ( $ aPossibleModuleNames as $ sPossibleModuleName ) { if ( isset ( $ aVersions [ $ sPossibleModuleName ] ) === true ) { return $ aVersions [ $ sPossibleModuleName ] ; } elseif ( isset ( $ aVersions [ strtolower ( $ sPossibleModuleName ) ] ) === true ) { return $ aVersions [ strtolower ( $ sPossibleModuleName ) ] ; } } return null ; }
Returns the current installed version.

@return null|string
Returns the current installed version .