public static function fetchStatus($about)
    {
        $return = array();
        self::__buildExtensionList();

        if (isset($about['handle']) && array_key_exists($about['handle'], self::$_extensions)) {
            if (self::$_extensions[$about['handle']]['status'] == 'enabled') {
                $return[] = Extension::EXTENSION_ENABLED;
            } else {
                $return[] = Extension::EXTENSION_DISABLED;
            }
        } else {
            $return[] = Extension::EXTENSION_NOT_INSTALLED;
        }

        if (isset($about['handle'], $about['version']) && self::__requiresUpdate($about['handle'], $about['version'])) {
            $return[] = Extension::EXTENSION_REQUIRES_UPDATE;
        }

        return $return;
    }
public static function fetchStatus($about)
    {
        $return = array();
        self::__buildExtensionList();

        if (isset($about['handle']) && array_key_exists($about['handle'], self::$_extensions)) {
            if (self::$_extensions[$about['handle']]['status'] == 'enabled') {
                $return[] = Extension::EXTENSION_ENABLED;
            } else {
                $return[] = Extension::EXTENSION_DISABLED;
            }
        } else {
            $return[] = Extension::EXTENSION_NOT_INSTALLED;
        }

        if (isset($about['handle'], $about['version']) && self::__requiresUpdate($about['handle'], $about['version'])) {
            $return[] = Extension::EXTENSION_REQUIRES_UPDATE;
        }

        return $return;
    }
public static function fetchStatus ( $ about ) { $ return = array ( ) ; self :: __buildExtensionList ( ) ; if ( isset ( $ about [ 'handle' ] ) && array_key_exists ( $ about [ 'handle' ] , self :: $ _extensions ) ) { if ( self :: $ _extensions [ $ about [ 'handle' ] ] [ 'status' ] == 'enabled' ) { $ return [ ] = Extension :: EXTENSION_ENABLED ; } else { $ return [ ] = Extension :: EXTENSION_DISABLED ; } } else { $ return [ ] = Extension :: EXTENSION_NOT_INSTALLED ; } if ( isset ( $ about [ 'handle' ] , $ about [ 'version' ] ) && self :: __requiresUpdate ( $ about [ 'handle' ] , $ about [ 'version' ] ) ) { $ return [ ] = Extension :: EXTENSION_REQUIRES_UPDATE ; } return $ return ; }
Returns the status of an Extension given an associative array containing
the Extension `handle` and `version` where the `version` is the file
version, not the installed version. This function returns an array
which may include a maximum of two statuses.

@param array $about
An associative array of the extension meta data, typically returned
by `ExtensionManager::about()`. At the very least this array needs
`handle` and `version` keys.
@return array
An array of extension statuses, with the possible values being
`EXTENSION_ENABLED`, `EXTENSION_DISABLED`, `EXTENSION_REQUIRES_UPDATE`
or `EXTENSION_NOT_INSTALLED`. If an extension doesn't exist,
`EXTENSION_NOT_INSTALLED` will be returned.
Returns the status of an Extension given an associative array containing the Extension handle and version where the version is the file version not the installed version . This function returns an array which may include a maximum of two statuses .