|
| extract ($archive, $destination, array $options=array()) |
|
Bzip2 format adapter for the JArchive class
- Depuis
- 1.5
- Obsolète:
- 4.0 use the Joomla class instead
◆ extract()
extract |
( |
|
$archive, |
|
|
|
$destination, |
|
|
array |
$options = array() |
|
) |
| |
Extract a Bzip2 compressed file to a given path
- Paramètres
-
string | $archive | Path to Bzip2 archive to extract |
string | $destination | Path to extract archive to |
array | $options | Extraction options [unused] |
- Renvoie
- boolean True if successful
- Depuis
- 1.5
- Exceptions
-
Implémente JArchiveExtractable.
Références $buffer, $options, et null.
◆ extractStream()
extractStream |
( |
|
$archive, |
|
|
|
$destination, |
|
|
|
$options = array() |
|
) |
| |
|
protected |
Method to extract archive using stream objects
- Paramètres
-
string | $archive | Path to Bzip2 archive to extract |
string | $destination | Path to extract archive to |
array | $options | Extraction options [unused] |
- Renvoie
- boolean True if successful
- Depuis
- 3.6.0
Références $input, et $output.
◆ isSupported()
Tests whether this adapter can unpack files on this computer.
- Renvoie
- boolean True if supported
- Depuis
- 2.5.0
Implémente JArchiveExtractable.
◆ raiseWarning()
raiseWarning |
( |
|
$code, |
|
|
|
$msg |
|
) |
| |
|
private |
Temporary private method to isolate JError from the extract method This code should be removed when JError is removed.
- Paramètres
-
int | $code | The application-internal error code for this error |
string | $msg | The error message, which may also be shown the user if need be. |
- Renvoie
- JException JException instance if JError class exists
- Depuis
- 3.6.0
- Exceptions
-
RuntimeException | if JError class does not exist |
Références JError\raiseWarning().
◆ $_data
La documentation de cette classe a été générée à partir du fichier suivant :