class JArchive

An Archive handling class

Methods

static  boolean
extract( string $archivename, string $extractdir)

Extract an archive file to a directory.

getAdapter( string $type)

Get a file compression adapter.

Details

static boolean extract( string $archivename, string $extractdir)

Extract an archive file to a directory.

Parameters

string $archivename The name of the archive file
string $extractdir Directory to unpack into

Return Value

boolean True for success

Exceptions

InvalidArgumentException

static JArchiveExtractable getAdapter( string $type)

Get a file compression adapter.

Parameters

string $type The type of adapter (bzip2|gzip|tar|zip).

Return Value

JArchiveExtractable Adapter for the requested type

Exceptions

UnexpectedValueException