ArchiverInterface
interface ArchiverInterface
Interface ArchiverInterface
Methods
string
getId()
Get archiver identifier
string
getName()
Get archiver name
string
getExtension()
Get archiver extension
string
getMimeType()
Get archiver mime type
boolean
isAvailable()
Get archiver availability
string
getArchivePath()
Get archive path
$this
setArchivePath(
string $archivePath)
Set archive path
$this
create(
string $baseName)
Create a new archive
$this
open(
string $path)
Open an archive
$this
add(
string $path,
null|string $pathInArchive = null)
Add directory or file to archive
boolean
save()
Save archive
File
extract(
string $toPath)
Extract archive
Details
at line 26
string
getId()
Get archiver identifier
at line 33
string
getName()
Get archiver name
at line 40
string
getExtension()
Get archiver extension
at line 47
string
getMimeType()
Get archiver mime type
at line 54
boolean
isAvailable()
Get archiver availability
at line 61
string
getArchivePath()
Get archive path
at line 70
$this
setArchivePath(
string $archivePath)
Set archive path
at line 79
$this
create(
string $baseName)
Create a new archive
at line 88
$this
open(
string $path)
Open an archive
at line 98
$this
add(
string $path,
null|string $pathInArchive = null)
Add directory or file to archive
at line 105
boolean
save()
Save archive
at line 114
File
extract(
string $toPath)
Extract archive