JArchiveTar

Implements \JArchiveExtractable

Tar format adapter for the JArchive class

deprecated

This class is inspired from and draws heavily in code and concept from the Compress package of The Horde Project https://www.horde.org

contributor

Michael Slusarz slusarz@horde.org

Michael Cochrane mike@graftonhall.co.nz

since

11.1

deprecated

4.0 use the Joomla\Archive\Tar class instead

package

Joomla.Platform

Methods

_getTarInfo

Get the list of files/data from a Tar archive buffer.

_getTarInfo( &$data) : boolean|\JException
since

11.1

throws

\RuntimeExceptionif JError class does not exist

Arguments

$data

Response

boolean|\JExceptionTrue on success, JException instance on failure if JError class exists

extract

Extract a ZIP compressed file to a given path

extract(string $archive, string $destination, array $options = array()) : boolean|\JException
since

11.1

throws

\RuntimeExceptionif JError class does not exist

Arguments

$archive

stringPath to ZIP archive to extract

$destination

stringPath to extract archive into

$options

arrayExtraction options [unused]

Response

boolean|\JExceptionTrue on success, JException instance on failure if JError class exists

isSupported

Tests whether this adapter can unpack files on this computer.

isSupported() : boolean
static
since

11.3

Response

booleanTrue if supported

Properties

_types

Tar file types.

Type(s)

array

_data

Tar file data buffer

Type(s)

string