protected static function checkRequirements()
    {
        if (empty(self::$enabledTypes)) {
            self::$enabledTypes[self::ZIP] = extension_loaded('zip');
            self::$enabledTypes[self::SEVEN_ZIP] = class_exists('\Archive7z\Archive7z');
            self::$enabledTypes[self::RAR] = extension_loaded('rar');
            self::$enabledTypes[self::GZIP] = extension_loaded('zlib');
            self::$enabledTypes[self::BZIP] = extension_loaded('bz2');
            self::$enabledTypes[self::LZMA] = extension_loaded('xz');
            self::$enabledTypes[self::ISO] = class_exists('\CISOFile');
            self::$enabledTypes[self::CAB] = class_exists('\CabArchive');
            self::$enabledTypes[self::TAR] = class_exists('\Archive_Tar') || class_exists('\PharData');
            self::$enabledTypes[self::TAR_GZIP] = (class_exists('\Archive_Tar') || class_exists('\PharData')) && extension_loaded('zlib');
            self::$enabledTypes[self::TAR_BZIP] = (class_exists('\Archive_Tar') || class_exists('\PharData')) && extension_loaded('bz2');
            self::$enabledTypes[self::TAR_LZMA] = class_exists('\Archive_Tar') && extension_loaded('lzma2');
            self::$enabledTypes[self::TAR_LZMA] = class_exists('\Archive_Tar') && LzwStreamWrapper::isBinaryAvailable();
        }
    }
protected static function checkRequirements()
    {
        if (empty(self::$enabledTypes)) {
            self::$enabledTypes[self::ZIP] = extension_loaded('zip');
            self::$enabledTypes[self::SEVEN_ZIP] = class_exists('\Archive7z\Archive7z');
            self::$enabledTypes[self::RAR] = extension_loaded('rar');
            self::$enabledTypes[self::GZIP] = extension_loaded('zlib');
            self::$enabledTypes[self::BZIP] = extension_loaded('bz2');
            self::$enabledTypes[self::LZMA] = extension_loaded('xz');
            self::$enabledTypes[self::ISO] = class_exists('\CISOFile');
            self::$enabledTypes[self::CAB] = class_exists('\CabArchive');
            self::$enabledTypes[self::TAR] = class_exists('\Archive_Tar') || class_exists('\PharData');
            self::$enabledTypes[self::TAR_GZIP] = (class_exists('\Archive_Tar') || class_exists('\PharData')) && extension_loaded('zlib');
            self::$enabledTypes[self::TAR_BZIP] = (class_exists('\Archive_Tar') || class_exists('\PharData')) && extension_loaded('bz2');
            self::$enabledTypes[self::TAR_LZMA] = class_exists('\Archive_Tar') && extension_loaded('lzma2');
            self::$enabledTypes[self::TAR_LZMA] = class_exists('\Archive_Tar') && LzwStreamWrapper::isBinaryAvailable();
        }
    }
protected static function checkRequirements ( ) { if ( empty ( self :: $ enabledTypes ) ) { self :: $ enabledTypes [ self :: ZIP ] = extension_loaded ( 'zip' ) ; self :: $ enabledTypes [ self :: SEVEN_ZIP ] = class_exists ( '\Archive7z\Archive7z' ) ; self :: $ enabledTypes [ self :: RAR ] = extension_loaded ( 'rar' ) ; self :: $ enabledTypes [ self :: GZIP ] = extension_loaded ( 'zlib' ) ; self :: $ enabledTypes [ self :: BZIP ] = extension_loaded ( 'bz2' ) ; self :: $ enabledTypes [ self :: LZMA ] = extension_loaded ( 'xz' ) ; self :: $ enabledTypes [ self :: ISO ] = class_exists ( '\CISOFile' ) ; self :: $ enabledTypes [ self :: CAB ] = class_exists ( '\CabArchive' ) ; self :: $ enabledTypes [ self :: TAR ] = class_exists ( '\Archive_Tar' ) || class_exists ( '\PharData' ) ; self :: $ enabledTypes [ self :: TAR_GZIP ] = ( class_exists ( '\Archive_Tar' ) || class_exists ( '\PharData' ) ) && extension_loaded ( 'zlib' ) ; self :: $ enabledTypes [ self :: TAR_BZIP ] = ( class_exists ( '\Archive_Tar' ) || class_exists ( '\PharData' ) ) && extension_loaded ( 'bz2' ) ; self :: $ enabledTypes [ self :: TAR_LZMA ] = class_exists ( '\Archive_Tar' ) && extension_loaded ( 'lzma2' ) ; self :: $ enabledTypes [ self :: TAR_LZMA ] = class_exists ( '\Archive_Tar' ) && LzwStreamWrapper :: isBinaryAvailable ( ) ; } }
Tests system configuration
Tests system configuration