public function isMetadataSupported()
    {
        $sMetadataVersion = $this->getMetaDataVersion();

        $sLatestVersion = '1.0';

        if (method_exists('oxModuleList', 'getModuleVersions') || method_exists('oxModule', 'getModuleEvents')) {
            $sLatestVersion = '1.1';
        }

        if (method_exists(ModuleList::class, 'getModuleConfigParametersByKey')) {
            $sLatestVersion = '2.0';
        }

        if (method_exists(ModuleList::class, 'getSmartyPluginDirectories')) {
            $sLatestVersion = '2.1';
        }


        return version_compare($sLatestVersion, $sMetadataVersion) >= 0;
    }
public function isMetadataSupported()
    {
        $sMetadataVersion = $this->getMetaDataVersion();

        $sLatestVersion = '1.0';

        if (method_exists('oxModuleList', 'getModuleVersions') || method_exists('oxModule', 'getModuleEvents')) {
            $sLatestVersion = '1.1';
        }

        if (method_exists(ModuleList::class, 'getModuleConfigParametersByKey')) {
            $sLatestVersion = '2.0';
        }

        if (method_exists(ModuleList::class, 'getSmartyPluginDirectories')) {
            $sLatestVersion = '2.1';
        }


        return version_compare($sLatestVersion, $sMetadataVersion) >= 0;
    }
public function isMetadataSupported ( ) { $ sMetadataVersion = $ this -> getMetaDataVersion ( ) ; $ sLatestVersion = '1.0' ; if ( method_exists ( 'oxModuleList' , 'getModuleVersions' ) || method_exists ( 'oxModule' , 'getModuleEvents' ) ) { $ sLatestVersion = '1.1' ; } if ( method_exists ( ModuleList :: class , 'getModuleConfigParametersByKey' ) ) { $ sLatestVersion = '2.0' ; } if ( method_exists ( ModuleList :: class , 'getSmartyPluginDirectories' ) ) { $ sLatestVersion = '2.1' ; } return version_compare ( $ sLatestVersion , $ sMetadataVersion ) >= 0 ; }
Check supported metadata version

@return bool
Check supported metadata version