public static function mustBeEnabled(common_ext_Extension $extension) {
        foreach (common_ext_ExtensionsManager::singleton()->getEnabledExtensions() as $ext) {
            foreach ($ext->getDependencies() as $extId => $version) {
                if ($extId == $extension->getId()) {
                    return true;
                }
            }
        }
        return false;
    }
public static function mustBeEnabled(common_ext_Extension $extension) {
        foreach (common_ext_ExtensionsManager::singleton()->getEnabledExtensions() as $ext) {
            foreach ($ext->getDependencies() as $extId => $version) {
                if ($extId == $extension->getId()) {
                    return true;
                }
            }
        }
        return false;
    }
public static function mustBeEnabled ( common_ext_Extension $ extension ) { foreach ( common_ext_ExtensionsManager :: singleton ( ) -> getEnabledExtensions ( ) as $ ext ) { foreach ( $ ext -> getDependencies ( ) as $ extId => $ version ) { if ( $ extId == $ extension -> getId ( ) ) { return true ; } } } return false ; }
Whenever or not the extension is required to be enabled
by other enabled extensions

@param common_ext_Extension $extension
@return boolean
Whenever or not the extension is required to be enabled by other enabled extensions