class JArchive


Located at : UKNOWVA_ROOT/libraries/joomla/filesystem/archive.php

An Archive handling class

Methods

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

Extract an archive file to a directory.

static object
getAdapter(string $type)

Get a file compression adapter.

Details

at line 30
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

at line 165
static object getAdapter(string $type)

Get a file compression adapter.

Parameters

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

Return Value

object JObject