source/Core/ViewConfig.php
private function _isModuleVersionCorrect($sModuleId, $sVersionFrom, $sVersionTo)
    {
        $blModuleIsActive = true;

        $aModuleVersions = $this->getConfig()->getConfigParam('aModuleVersions');

        if ($sVersionFrom && !version_compare($aModuleVersions[$sModuleId], $sVersionFrom, '>=')) {
            $blModuleIsActive = false;
        }

        if ($blModuleIsActive && $sVersionTo && !version_compare($aModuleVersions[$sModuleId], $sVersionTo, '<')) {
            $blModuleIsActive = false;
        }

        return $blModuleIsActive;
    }
private function _isModuleVersionCorrect($sModuleId, $sVersionFrom, $sVersionTo)
    {
        $blModuleIsActive = true;

        $aModuleVersions = $this->getConfig()->getConfigParam('aModuleVersions');

        if ($sVersionFrom && !version_compare($aModuleVersions[$sModuleId], $sVersionFrom, '>=')) {
            $blModuleIsActive = false;
        }

        if ($blModuleIsActive && $sVersionTo && !version_compare($aModuleVersions[$sModuleId], $sVersionTo, '<')) {
            $blModuleIsActive = false;
        }

        return $blModuleIsActive;
    }
private function _isModuleVersionCorrect ( $ sModuleId , $ sVersionFrom , $ sVersionTo ) { $ blModuleIsActive = true ; $ aModuleVersions = $ this -> getConfig ( ) -> getConfigParam ( 'aModuleVersions' ) ; if ( $ sVersionFrom && ! version_compare ( $ aModuleVersions [ $ sModuleId ] , $ sVersionFrom , '>=' ) ) { $ blModuleIsActive = false ; } if ( $ blModuleIsActive && $ sVersionTo && ! version_compare ( $ aModuleVersions [ $ sModuleId ] , $ sVersionTo , '<' ) ) { $ blModuleIsActive = false ; } return $ blModuleIsActive ; }
Checks whether module version is between given range.

@param string $sModuleId    Module id
@param string $sVersionFrom Version from
@param string $sVersionTo   Version to

@return bool
Checks whether module version is between given range .