|
| extract ($archive, $destination, array $options=array()) |
|
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
Michael Slusarz slusa.nosp@m.rz@h.nosp@m.orde..nosp@m.org Michael Cochrane mike@.nosp@m.graf.nosp@m.tonha.nosp@m.ll.c.nosp@m.o.nz
- Depuis
- 1.5
- Obsolète:
- 4.0 use the Joomla class instead
◆ _getTarInfo()
Get the list of files/data from a Tar archive buffer.
- Paramètres
-
string | &$data | The Tar archive buffer. |
- Renvoie
- boolean|JException True on success, JException instance on failure if JError class exists
- Depuis
- 1.5
- Exceptions
-
RuntimeException | if JError class does not exist |
This variable has been set in the previous loop, meaning that the filename was present in the previous block to allow more than 100 characters - see below
Références $data, $file, $info, $mode, $position, elseif, null, et JError\raiseWarning().
◆ extract()
extract |
( |
|
$archive, |
|
|
|
$destination, |
|
|
array |
$options = array() |
|
) |
| |
Extract a ZIP compressed file to a given path
- Paramètres
-
string | $archive | Path to ZIP archive to extract |
string | $destination | Path to extract archive into |
array | $options | Extraction options [unused] |
- Renvoie
- boolean|JException True on success, JException instance on failure if JError class exists
- Depuis
- 1.5
- Exceptions
-
RuntimeException | if JError class does not exist |
Implémente JArchiveExtractable.
Références $buffer, $i, $n, $path, $type, null, et JError\raiseWarning().
◆ isSupported()
Tests whether this adapter can unpack files on this computer.
- Renvoie
- boolean True if supported
- Depuis
- 2.5.0
Implémente JArchiveExtractable.
◆ $_data
◆ $_metadata
◆ $_types
Valeur initiale := 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',
)
La documentation de cette classe a été générée à partir du fichier suivant :