class TestAdapter extends ZipAdapter
Class TestAdapter this file is to cover the test of working extending adapter
Methods
__construct()
|
from ZipAdapter | |
static bool |
supports(string $type)
|
from ZipAdapter |
File[] |
getFiles()
|
from ZipAdapter |
int |
getFilesCount()
|
from ZipAdapter |
object |
getArchive()
|
from ZipAdapter |
bool |
unzip(string $destination = null, string|array $entries = null)
|
from ZipAdapter |
string |
getFilename()
|
from ZipAdapter |
string|bool |
getComment()
|
from ZipAdapter |
Adapter|bool |
setComment(string $comment)
|
from ZipAdapter |
$this |
updateArchive()
|
from ZipAdapter |
void |
open(string $file, int $flags = \ZipArchive::CREATE)
|
from ZipAdapter |
Adapter |
addFolder(string $path, string $parent = '')
|
from ZipAdapter |
bool |
addFile(string $path, string $localName = null, int $start, null $length = null, bool $noUpdate = false)
|
from ZipAdapter |
bool |
removeFileByObject(File $file)
|
from ZipAdapter |
bool |
removeFileByName(string $name)
|
from ZipAdapter |
array |
addGlob(string $glob, int $flags = GLOB_BRACE, array $options = array())
|
from ZipAdapter |
array |
addPattern(string $pattern, string $directory, array $options = array())
|
from ZipAdapter |
Adapter |
compress(string $format)
|
from ZipAdapter |
Details
in ZipAdapter at line 48
public
__construct()
in ZipAdapter at line 59
static public bool
supports(string $type)
in ZipAdapter at line 67
public File[]
getFiles()
in ZipAdapter at line 82
public int
getFilesCount()
in ZipAdapter at line 90
public object
getArchive()
in ZipAdapter at line 98
public bool
unzip(string $destination = null, string|array $entries = null)
in ZipAdapter at line 110
public string
getFilename()
in ZipAdapter at line 118
public string|bool
getComment()
in ZipAdapter at line 126
public Adapter|bool
setComment(string $comment)
in ZipAdapter at line 135
public $this
updateArchive()
in ZipAdapter at line 144
public void
open(string $file, int $flags = \ZipArchive::CREATE)
in ZipAdapter at line 152
public Adapter
addFolder(string $path, string $parent = '')
in ZipAdapter at line 180
public bool
addFile(string $path, string $localName = null, int $start, null $length = null, bool $noUpdate = false)
in ZipAdapter at line 194
public bool
removeFileByObject(File $file)
in ZipAdapter at line 204
public bool
removeFileByName(string $name)
in ZipAdapter at line 214
public array
addGlob(string $glob, int $flags = GLOB_BRACE, array $options = array())
in ZipAdapter at line 224
public array
addPattern(string $pattern, string $directory, array $options = array())
in ZipAdapter at line 240
public Adapter
compress(string $format)