class JArchiveTar implements JArchiveExtractable

Tar format adapter for the JArchive class

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

Methods

boolean
extract( string $archive, string $destination, array $options = array())

Extract a ZIP compressed file to a given path

static  boolean
isSupported()

Tests whether this adapter can unpack files on this computer.

Details

boolean extract( string $archive, string $destination, array $options = array())

Extract a ZIP compressed file to a given path

Parameters

string $archive Path to archive to extract
string $destination Path to extract archive to
array $options Extraction options [may be unused]

Return Value

boolean True if successful

Exceptions

RuntimeException if JError class does not exist

static boolean isSupported()

Tests whether this adapter can unpack files on this computer.

Return Value

boolean True if supported