Bzip2
实现 ExtractableInterfaceArchive 包的 Bzip2 格式适配器
| 自 |
1.0 |
|---|---|
| 包 |
Joomla 框架 |
方法
__construct
创建一个新的 Archive 对象。
__construct(array|\ArrayAccess options = []) :
| 自 |
1.0 |
|---|---|
| 抛出 |
|
参数
- options
array<string|int, mixed>|ArrayAccess选项数组
响应
混合类型
extract
将 Bzip2 压缩文件解压缩到指定路径
extract( archive, destination) :
| 自 |
1.0 |
|---|---|
| 抛出 |
|
参数
- archive
string要解压缩的 Bzip2 档案路径- destination
string解压缩档案的路径
响应
bool 如果成功,则为 true
isSupported
测试此适配器是否可以在此计算机上解压缩文件。
isSupported() :
静态
| 自 |
1.0 |
|---|
响应
bool 如果支持,则为 true
属性
data
Bzip2 文件数据缓冲区
| 自 |
1.0 |
|---|
类型
string
options
保存选项数组。
| 自 |
1.0 |
|---|
类型
array<string|int, mixed>|ArrayAccess