An Archive handling class
- Depuis
- 1.0
◆ __construct()
__construct |
( |
|
$options = array() | ) |
|
Create a new Archive object.
- Paramètres
-
array | \ArrayAccess | $options | An array of options |
- Depuis
- 1.0
- Exceptions
-
Références Archive\$options.
◆ extract()
extract |
( |
|
$archivename, |
|
|
|
$extractdir |
|
) |
| |
Extract an archive file to a directory.
- Paramètres
-
string | $archivename | The name of the archive file |
string | $extractdir | Directory to unpack into |
- Renvoie
- boolean True for success
- Depuis
- 1.0
- Exceptions
-
UnknownArchiveException | if the archive type is not supported |
Références $path, File\copy(), Folder\create(), et null.
◆ setAdapter()
setAdapter |
( |
|
$type, |
|
|
|
$class, |
|
|
|
$override = true |
|
) |
| |
Method to override the provided adapter with your own implementation.
- Paramètres
-
string | $type | Name of the adapter to set. |
string | object | $class | FQCN of your class which implements ExtractableInterface. |
boolean | $override | True to force override the adapter type. |
- Renvoie
- Archive This object for chaining.
- Depuis
- 1.0
- Exceptions
-
UnsupportedArchiveException | if the adapter type is not supported |
Références $class, et $type.
◆ $adapters
◆ $options
La documentation de cette classe a été générée à partir du fichier suivant :