JArchive

An Archive handling class

deprecated
since

11.1

deprecated

4.0 use the Joomla\Archive\Archive class instead

package

Joomla.Platform

Methods

extract

Extract an archive file to a directory.

extract(string $archivename, string $extractdir) : boolean
static deprecated
since

11.1

throws

\InvalidArgumentException

deprecated

4.0 use the Joomla\Archive\Archive class instead

Arguments

$archivename

stringThe name of the archive file

$extractdir

stringDirectory to unpack into

Response

booleanTrue for success

getAdapter

Get a file compression adapter.

getAdapter(string $type) : \JArchiveExtractable
static deprecated
since

11.1

throws

\UnexpectedValueException

deprecated

4.0 use the Joomla\Archive\Archive class instead

Arguments

$type

stringThe type of adapter (bzip2|gzip|tar|zip).

Response

\JArchiveExtractableAdapter for the requested type

Properties

adapters

The array of instantiated archive adapters.

static

Type(s)

array