JArchive
An Archive handling class
| package |
Joomla.Platform |
|---|---|
| subpackage |
FileSystem |
| since |
11.1 |
Methods
extract
Extract an archive file to a directory.
extract(string $archivename, string $extractdir) : boolean
static
| since |
11.1 |
|---|
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) : object
static
| since |
11.1 |
|---|
Arguments
- $type
stringThe type of adapter (bzip2|gzip|tar|zip).
Response
objectJObject