Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JArchiveTar

Description

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 <http://www.horde.org>

Located in /joomla/filesystem/archive/tar.php (line 32)

Class JObject   (Subpackage Base)

Class JArchiveTar   (Subpackage FileSystem)
Variable Summary
Variable string $_data
Variable array $_flags
Variable array $_metadata
Variable array $_types
Method Summary
Method boolean extract (string $archive, string $destination, [array $options = array ()])
Variables
string $_data = null (line 66)

Tar file data buffer

array $_flags = array (
'FTEXT' => 0x01,
'FHCRC' => 0x02,
'FEXTRA' => 0x04,
'FNAME' => 0x08,
'FCOMMENT' => 0x10
)
(line 54)

Tar file flags.

array $_metadata = null (line 72)

Tar file metadata array

array $_types = array (
0x0 => 'Unix file',
0x30 => 'File',
0x31 => 'Link',
0x32 => 'Symbolic link',
0x33 => 'Character special file',
0x34 => 'Block special file',
0x35 => 'Directory',
0x36 => 'FIFO special file',
0x37 => 'Contiguous file'
)
(line 38)

Tar file types.

Methods
extract (line 84)

Extract a ZIP compressed file to a given path

  • return: True if successful
  • since: 1.5
  • access: public
boolean extract (string $archive, string $destination, [array $options = array ()])
  • string $archive: Path to ZIP archive to extract
  • string $destination: Path to extract archive into
  • array $options: Extraction options [unused]

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 21:27:50 +0000 by phpDocumentor 1.3.1